diff options
author | Juan Pablo Villafáñez <jvillafanez@solidgear.es> | 2016-07-12 09:04:48 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-03-29 12:49:08 +0200 |
commit | 9e2e0c4c3024fc81579842e70fd384dd8461cd11 (patch) | |
tree | ae2b21abff5f7c06f8f62770c54cc848b33b08c9 /apps | |
parent | 626d03e3d47994364500bd6cd5dd9a029b862fb7 (diff) | |
download | nextcloud-server-9e2e0c4c3024fc81579842e70fd384dd8461cd11.tar.gz nextcloud-server-9e2e0c4c3024fc81579842e70fd384dd8461cd11.zip |
Convert the group limit to match the same behaviour as the user search
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/lib/Command/Search.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/Command/Search.php b/apps/user_ldap/lib/Command/Search.php index 17e506855b2..57970b1ac5d 100644 --- a/apps/user_ldap/lib/Command/Search.php +++ b/apps/user_ldap/lib/Command/Search.php @@ -114,6 +114,11 @@ class Search extends Command { $proxy = new Group_Proxy($configPrefixes, $ldapWrapper); $getMethod = 'getGroups'; $printID = false; + // convert the limit of groups to null. This will show all the groups available instead of + // nothing, and will match the same behaviour the search for users has. + if ($limit === 0) { + $limit = null; + } } else { $proxy = new User_Proxy($configPrefixes, $ldapWrapper, $this->ocConfig); $getMethod = 'getDisplayNames'; |