diff --git a/src/rm/RequestManagerVMTemplate.cc b/src/rm/RequestManagerVMTemplate.cc index d88ba5f019..5bae71254a 100644 --- a/src/rm/RequestManagerVMTemplate.cc +++ b/src/rm/RequestManagerVMTemplate.cc @@ -183,7 +183,12 @@ void VMTemplateInstantiate::request_execute(xmlrpc_c::paramList const& paramList if (!str_uattrs.empty()) { - ar.add_auth(AuthRequest::CREATE, perms); //CREATE TEMPLATE + PoolObjectAuth tmp_perms; + + perms.uid = att.uid; + perms.obj_type = auth_object; + + ar.add_auth(AuthRequest::CREATE, tmp_perms); //CREATE TEMPLATE } VirtualMachine::set_auth_request(att.uid, ar, tmpl);