Commit 020ee0a8 by Őry Máté

acl: remove double auth checking in VmCreate.post

parent 1562a44a
......@@ -468,9 +468,6 @@ class VmCreate(LoginRequiredMixin, TemplateView):
# TODO handle not ajax posts
def post(self, request, *args, **kwargs):
if not self.request.user.is_authenticated():
raise PermissionDenied()
form = self.form_class(request.POST)
if not form.is_valid():
return self.get(request, form, *args, **kwargs)
......
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