aboutsummaryrefslogtreecommitdiffstats
path: root/settings/ajax
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-04-17 18:25:05 +0200
committerArthur Schiwon <blizzz@owncloud.com>2014-06-02 12:53:56 +0200
commit5444a1114d27d326d3c1af246d163912cda3e7b2 (patch)
treef15e04d379e43a96029377608f41c5e12df5d3d6 /settings/ajax
parent3e411c82a537b5ee0663f1d3a516cdfa93ee4581 (diff)
downloadnextcloud-server-5444a1114d27d326d3c1af246d163912cda3e7b2.tar.gz
nextcloud-server-5444a1114d27d326d3c1af246d163912cda3e7b2.zip
cleanup
Diffstat (limited to 'settings/ajax')
-rw-r--r--settings/ajax/grouplist.php38
1 files changed, 0 insertions, 38 deletions
diff --git a/settings/ajax/grouplist.php b/settings/ajax/grouplist.php
index ba36dd65bf9..62c345a9ff0 100644
--- a/settings/ajax/grouplist.php
+++ b/settings/ajax/grouplist.php
@@ -44,43 +44,5 @@ if(!$isAdmin) {
$accessiblegroups = array_intersect($groups, $subadminGroups);
}
-// $sortGroupsIndex = 0;
-// $sortGroupsKeys = array();
-// $sortAdminGroupsIndex = 0;
-// $sortAdminGroupsKeys = array();
-//
-// foreach($accessiblegroups as $group) {
-// $gid = $group->getGID();
-// $group = $groupManager->get($gid);
-// if(!$group) {
-// continue;
-// }
-// $usersInGroup = $group->count();
-// if (!OC_User::isAdminUser($gid)) {
-// $groups[] = array(
-// 'id' => str_replace(' ','', $gid ),
-// 'name' => $gid,
-// 'usercount' => $usersInGroup,
-// );
-// $sortGroupsKeys[$sortGroupsIndex] = $usersInGroup;
-// $sortGroupsIndex++;
-// } else {
-// $adminGroup[] = array(
-// 'id' => str_replace(' ','', $gid ),
-// 'name' => $gid,
-// 'usercount' => $usersInGroup
-// );
-// $sortAdminGroupsKeys[$sortAdminGroupsIndex] = $usersInGroup;
-// $sortAdminGroupsIndex++;
-// }
-// }
-//
-// if(!empty($groups)) {
-// array_multisort($sortGroupsKeys, SORT_DESC, $groups);
-// }
-// if(!empty($adminGroup)) {
-// array_multisort($sortAdminGroupsKeys, SORT_DESC, $adminGroup);
-// }
-
OC_JSON::success(
array('data' => array('adminGroups' => $adminGroups, 'groups' => $groups)));