small fixes / cleanup
This commit is contained in:
parent
f2fed6de4e
commit
f9f9550969
|
@ -81,9 +81,8 @@ class MetaData {
|
||||||
$sortAdminGroupsKeys = array();
|
$sortAdminGroupsKeys = array();
|
||||||
|
|
||||||
foreach($this->getGroups($search) as $group) {
|
foreach($this->getGroups($search) as $group) {
|
||||||
$usersInGroup = $group->count();
|
|
||||||
$groupMetaData = $this->generateGroupMetaData($group);
|
$groupMetaData = $this->generateGroupMetaData($group);
|
||||||
if (strtolower($gid) !== 'admin') {
|
if (strtolower($group->getGID()) !== 'admin') {
|
||||||
$this->addEntry(
|
$this->addEntry(
|
||||||
$groups,
|
$groups,
|
||||||
$sortGroupsKeys,
|
$sortGroupsKeys,
|
||||||
|
|
|
@ -53,7 +53,7 @@ class User {
|
||||||
private $config;
|
private $config;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int $home
|
* @var int $lastLogin
|
||||||
*/
|
*/
|
||||||
private $lastLogin;
|
private $lastLogin;
|
||||||
|
|
||||||
|
|
|
@ -22,17 +22,6 @@ $users = array();
|
||||||
$userManager = \OC_User::getManager();
|
$userManager = \OC_User::getManager();
|
||||||
$groupManager = \OC_Group::getManager();
|
$groupManager = \OC_Group::getManager();
|
||||||
|
|
||||||
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());
|
$isAdmin = OC_User::isAdminUser(OC_User::getUser());
|
||||||
|
|
||||||
$groupsInfo = new \OC\Group\MetaData(OC_User::getUser(), $isAdmin, $groupManager);
|
$groupsInfo = new \OC\Group\MetaData(OC_User::getUser(), $isAdmin, $groupManager);
|
||||||
|
|
Loading…
Reference in New Issue