1
0
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:
Carlos Martín 2011-12-30 20:31:30 +01:00
parent 11081ffd42
commit 417ba7d0dc

View File

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