Commit 04c2319b authored by Quentin Ribac's avatar Quentin Ribac
Browse files

FEAT #17436 TIME 0:10 GET/users/{id}: fixed groups field

parent 0a0afcf5
......@@ -112,7 +112,7 @@ class UserController
$groupsIds = array_column($userGroups, 'group_id');
if ($GLOBALS['id'] != $args['id']) {
$groupsIds = array_keys(array_intersect($groupsIds, UserController::getManageableGroups(['userId' => $GLOBALS['id']])));
$groupsIds = array_values(array_intersect($groupsIds, array_column(UserController::getManageableGroups(['userId' => $GLOBALS['id']]), 'id')));
}
if (!empty($groupsIds)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment