Merge pull request #10500 from owncloud/fix_userlist_settings_ajax
properly encode groups as json, not ',' separated
This commit is contained in:
commit
43266526e8
|
@ -58,8 +58,8 @@ if (OC_User::isAdminUser(OC_User::getUser())) {
|
||||||
$users[] = array(
|
$users[] = array(
|
||||||
'name' => $uid,
|
'name' => $uid,
|
||||||
'displayname' => $displayname,
|
'displayname' => $displayname,
|
||||||
'groups' => join(', ', OC_Group::getUserGroups($uid)),
|
'groups' => OC_Group::getUserGroups($uid),
|
||||||
'subadmin' => join(', ', OC_SubAdmin::getSubAdminsGroups($uid)),
|
'subadmin' => OC_SubAdmin::getSubAdminsGroups($uid),
|
||||||
'quota' => OC_Preferences::getValue($uid, 'files', 'quota', 'default'),
|
'quota' => OC_Preferences::getValue($uid, 'files', 'quota', 'default'),
|
||||||
'storageLocation' => $user->getHome(),
|
'storageLocation' => $user->getHome(),
|
||||||
'lastLogin' => $user->getLastLogin(),
|
'lastLogin' => $user->getLastLogin(),
|
||||||
|
@ -82,7 +82,7 @@ if (OC_User::isAdminUser(OC_User::getUser())) {
|
||||||
$users[] = array(
|
$users[] = array(
|
||||||
'name' => $uid,
|
'name' => $uid,
|
||||||
'displayname' => $user->getDisplayName(),
|
'displayname' => $user->getDisplayName(),
|
||||||
'groups' => join(', ', $userGroups),
|
'groups' => $userGroups,
|
||||||
'quota' => OC_Preferences::getValue($uid, 'files', 'quota', 'default'),
|
'quota' => OC_Preferences::getValue($uid, 'files', 'quota', 'default'),
|
||||||
'storageLocation' => $user->getHome(),
|
'storageLocation' => $user->getHome(),
|
||||||
'lastLogin' => $user->getLastLogin(),
|
'lastLogin' => $user->getLastLogin(),
|
||||||
|
|
Loading…
Reference in New Issue