mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-24 21:34:01 +03:00
Feature #1697: Change the PoolObjectAuth used for the CREATE TEMPLATE
This commit is contained in:
parent
415be14bcb
commit
bac2adb825
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user