Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraghunayyar <me@iraghu.com>2014-01-28 20:06:48 +0400
committerArthur Schiwon <blizzz@owncloud.com>2014-06-02 14:52:52 +0400
commitb506388b75c8454ef54ce05fa0d98db854c10faf (patch)
tree82908d5c68d88cc7a7833bac4b34988064b8fdc0 /settings/users.php
parentb2ca595509a1c14eb28768e4eed99a3ba6eba46a (diff)
Reverts last commit, implements user in group count.
Diffstat (limited to 'settings/users.php')
-rw-r--r--settings/users.php21
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" );