Commit a5867cdc by Bach Dániel

dashboard: fix #297 (Client connect button throws 403 for users (requires operator level))

Closes #297
parent 0c2709fa
......@@ -1210,7 +1210,7 @@ class ClientCheck(LoginRequiredMixin, TemplateView):
'instance': get_object_or_404(
Instance, pk=self.request.GET.get('vm')),
})
if not context['instance'].has_level(self.request.user, 'operator'):
if not context['instance'].has_level(self.request.user, 'user'):
raise PermissionDenied()
return context
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment