diff options
author | raghunayyar <me@iraghu.com> | 2014-01-28 21:36:48 +0530 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-06-02 12:52:52 +0200 |
commit | b506388b75c8454ef54ce05fa0d98db854c10faf (patch) | |
tree | 82908d5c68d88cc7a7833bac4b34988064b8fdc0 /settings/users.php | |
parent | b2ca595509a1c14eb28768e4eed99a3ba6eba46a (diff) | |
download | nextcloud-server-b506388b75c8454ef54ce05fa0d98db854c10faf.tar.gz nextcloud-server-b506388b75c8454ef54ce05fa0d98db854c10faf.zip |
Reverts last commit, implements user in group count.
Diffstat (limited to 'settings/users.php')
-rw-r--r-- | settings/users.php | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/settings/users.php b/settings/users.php index f09d0e90d3c..31a54b05c02 100644 --- a/settings/users.php +++ b/settings/users.php @@ -18,6 +18,17 @@ OC_App::setActiveNavigationEntry( 'core_users' ); $users = array(); $groups = array(); +if (isset($_GET['offset'])) { + $offset = $_GET['offset']; +} else { + $offset = 0; +} +if (isset($_GET['limit'])) { + $limit = $_GET['limit']; +} else { + $limit = 10; +} + $isadmin = OC_User::isAdminUser(OC_User::getUser()); $recoveryAdminEnabled = OC_App::isEnabled('files_encryption') && OC_Appconfig::getValue( 'files_encryption', 'recoveryAdminEnabled' ); @@ -65,9 +76,13 @@ foreach($accessibleusers as $uid => $displayName) { ); } -foreach( $accessiblegroups as $i ) { - // Do some more work here soon - $groups[] = array( "name" => $i ); +foreach( $accessiblegroups as $gid ) { + $groups[] = array( + 'id' => str_replace(' ','', $gid ), + 'name' => $gid, + 'useringroup' => OC_Group::usersInGroup($gid, '', $limit, $offset), + 'isAdmin' => !OC_User::isAdminUser($gid), + ); } $tmpl = new OC_Template( "settings", "users", "user" ); |