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):
pk=int(pk))
except (ValueError, InstanceTemplate.DoesNotExist):
raise Http404()
if not request.user.id == template.owner_id:
if not request.user.tenant_id == template.owner_id:
raise PermissionDenied()
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