1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B #4992: Fix user IDs on group updates

This commit is contained in:
Ruben S. Montero 2020-07-29 12:08:04 +02:00
parent 35902214ad
commit 10c9e17b66
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -897,11 +897,9 @@ bool UserPool::authenticate_internal(User * user,
continue;
}
group->add_user(*it);
if ( new_group_admin_ids.find(*it) != new_group_admin_ids.end() )
{
group->add_admin(*it, error_str);
group->add_admin(user_id, error_str);
}
group->add_user(user_id);