[Pkg-owncloud-commits] [owncloud] 17/23: Do not force isAdmin as true and so the list is filtered correctly

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 15:21:36 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit a77044da9e5eaee46489f4b9f23adc8effc59234
Author: Joas Schilling <nickvergessen at gmx.de>
Date:   Mon Jul 21 11:30:47 2014 +0200

    Do not force isAdmin as true and so the list is filtered correctly
---
 settings/ajax/grouplist.php | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/settings/ajax/grouplist.php b/settings/ajax/grouplist.php
index 52df98c..93bb510 100644
--- a/settings/ajax/grouplist.php
+++ b/settings/ajax/grouplist.php
@@ -38,9 +38,7 @@ $adminGroups = array();
 $groupManager = \OC_Group::getManager();
 $isAdmin = OC_User::isAdminUser(OC_User::getUser());
 
-//we pass isAdmin as true, because OC_SubAdmin has no search feature,
-//groups will be filtered out later
-$groupsInfo = new \OC\Group\MetaData(OC_User::getUser(), true, $groupManager);
+$groupsInfo = new \OC\Group\MetaData(OC_User::getUser(), $isAdmin, $groupManager);
 $groupsInfo->setSorting($groupsInfo::SORT_USERCOUNT);
 list($adminGroups, $groups) = $groupsInfo->get($groupPattern, $pattern);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list