mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-20 10:50:08 +03:00
Feature #940: Oneadmin can use any restricted att. no matter his group
This commit is contained in:
parent
2c0d240196
commit
f454054f99
@ -194,7 +194,7 @@ int VirtualMachine::insert(SqlDB * db, string& error_str)
|
||||
// Check template for restricted attributes
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
if ( gid != GroupPool::ONEADMIN_ID )
|
||||
if ( uid != 0 && gid != GroupPool::ONEADMIN_ID )
|
||||
{
|
||||
VirtualMachineTemplate *vt =
|
||||
static_cast<VirtualMachineTemplate *>(obj_template);
|
||||
|
Loading…
x
Reference in New Issue
Block a user