diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2013-02-22 14:51:21 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2013-02-22 14:51:21 +0100 |
commit | 2268596e1a3cb305bc3092394e59d5fdc72f0c1b (patch) | |
tree | 3db94e68d6c7669bcf8d46bf233330cc46ecbddf /settings/ajax/userlist.php | |
parent | c0443a2f0da13a6f3c10690887fb1b44a95f7106 (diff) | |
download | nextcloud-server-2268596e1a3cb305bc3092394e59d5fdc72f0c1b.tar.gz nextcloud-server-2268596e1a3cb305bc3092394e59d5fdc72f0c1b.zip |
Fetch displayname in userlist ajax requests. Refs #1681
Diffstat (limited to 'settings/ajax/userlist.php')
-rw-r--r-- | settings/ajax/userlist.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/settings/ajax/userlist.php b/settings/ajax/userlist.php index 9bbff80ea0c..5282f4a7143 100644 --- a/settings/ajax/userlist.php +++ b/settings/ajax/userlist.php @@ -29,10 +29,11 @@ if (isset($_GET['offset'])) { } $users = array(); if (OC_User::isAdminUser(OC_User::getUser())) { - $batch = OC_User::getUsers('', 10, $offset); - foreach ($batch as $user) { + $batch = OC_User::getDisplayNames('', 10, $offset); + foreach ($batch as $user => $displayname) { $users[] = array( 'name' => $user, + 'displayname' => $displayname, 'groups' => join(', ', OC_Group::getUserGroups($user)), 'subadmin' => join(', ', OC_SubAdmin::getSubAdminsGroups($user)), 'quota' => OC_Preferences::getValue($user, 'files', 'quota', 'default')); @@ -43,6 +44,7 @@ if (OC_User::isAdminUser(OC_User::getUser())) { foreach ($batch as $user) { $users[] = array( 'name' => $user, + 'displayname' => OC_User::determineDisplayName($user), 'groups' => join(', ', OC_Group::getUserGroups($user)), 'quota' => OC_Preferences::getValue($user, 'files', 'quota', 'default')); } |