1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-25 23:21:29 +03:00

Feature #1697: Change the PoolObjectAuth used for the CREATE TEMPLATE

This commit is contained in:
Carlos Martín 2013-02-18 15:06:28 +01:00
parent 415be14bcb
commit bac2adb825

View File

@ -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);