diff options
author | Stephan Peijnik <speijnik@anexia-it.com> | 2014-07-11 07:12:04 +0200 |
---|---|---|
committer | Stephan Peijnik <speijnik@anexia-it.com> | 2014-07-15 10:55:32 +0200 |
commit | 0acb76c97f0b96f99c0b848146e9cf87075806b4 (patch) | |
tree | d646478c9c45a4b68c0e68b73eed5e59c336fc66 /settings/users.php | |
parent | 8e8c6c9f72402139bfa4e0442820171ead6f6d81 (diff) | |
download | nextcloud-server-0acb76c97f0b96f99c0b848146e9cf87075806b4.tar.gz nextcloud-server-0acb76c97f0b96f99c0b848146e9cf87075806b4.zip |
Fixes #9583
lib/private/group/metadata.php: For subadmins also return an array of groups, indexed by their GIDs.
settings/users.php: Convert array of arrays to array of GIDs before calling into OC_Group::displayNamesInGroups.
Signed-off-by: Stephan Peijnik <speijnik@anexia-it.com>
Diffstat (limited to 'settings/users.php')
-rw-r--r-- | settings/users.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/settings/users.php b/settings/users.php index 29a63a4496a..9a225d5af98 100644 --- a/settings/users.php +++ b/settings/users.php @@ -35,7 +35,14 @@ if($isAdmin) { $accessibleUsers = OC_User::getDisplayNames('', 30); $subadmins = OC_SubAdmin::getAllSubAdmins(); }else{ - $accessibleUsers = OC_Group::displayNamesInGroups($groups, '', 30); + /* Retrieve group IDs from $groups array, so we can pass that information into OC_Group::displayNamesInGroups() */ + $gids = array(); + foreach($groups as $grp) { + if (isset($grp['id'])) { + $gids[] = $grp['id']; + } + } + $accessibleUsers = OC_Group::displayNamesInGroups($gids, '', 30); $subadmins = false; } |