Commit 7cb65f1c by Guba Sándor

fix

parent 05d1cfef
...@@ -737,8 +737,8 @@ class SaveAsTemplateOperation(InstanceOperation): ...@@ -737,8 +737,8 @@ class SaveAsTemplateOperation(InstanceOperation):
# Copy traits from the VM instance # Copy traits from the VM instance
tmpl.req_traits.add(*self.instance.req_traits.all()) tmpl.req_traits.add(*self.instance.req_traits.all())
if clone: if clone:
# Add permission for the original owner of the template
tmpl.clone_acl(self.instance.template) tmpl.clone_acl(self.instance.template)
# Add permission for the original owner of the template
tmpl.set_level(self.instance.template.owner, 'owner') tmpl.set_level(self.instance.template.owner, 'owner')
tmpl.set_level(user, 'owner') tmpl.set_level(user, 'owner')
try: try:
......
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