Commit d8b13d06 by Szabolcs Gelencser Committed by Szabolcs Gelencsér

Fix vm creation from template

parent 7a8a89b4
...@@ -1157,7 +1157,7 @@ class VmCreate(LoginRequiredMixin, TemplateView): ...@@ -1157,7 +1157,7 @@ class VmCreate(LoginRequiredMixin, TemplateView):
pk=int(pk)) pk=int(pk))
except (ValueError, InstanceTemplate.DoesNotExist): except (ValueError, InstanceTemplate.DoesNotExist):
raise Http404() raise Http404()
if not request.user.id == template.owner_id: if not request.user.tenant_id == template.owner_id:
raise PermissionDenied() raise PermissionDenied()
return template return template
......
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