mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Add an exception in PoolObjectSQL::select.
Now that the User is its owner (see User::from_xml), when retrieving the user by name (PoolSQL::get) the owner's ID is unknown
This commit is contained in:
parent
11081ffd42
commit
417ba7d0dc
@ -101,7 +101,7 @@ int PoolObjectSQL::select(SqlDB *db, const string& _name, int _uid)
|
||||
|
||||
db->free_str(sql_name);
|
||||
|
||||
if ((rc != 0) || (_name != name) || (_uid != uid))
|
||||
if ((rc != 0) || (_name != name) || (_uid != -1 && _uid != uid))
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user