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

B #4992: Fix user IDs on group updates

(cherry picked from commit 10c9e17b66942437d273f716ca45927f63fb9bbe)
This commit is contained in:
Ruben S. Montero 2020-07-29 12:08:04 +02:00
parent b4aa12c441
commit c95d03cb9f
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -900,11 +900,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);