Merge pull request #4141 from nextcloud/ldap-downstream-9

Convert the group limit to match the same behaviour as the user search
This commit is contained in:
Morris Jobke 2017-03-29 15:47:28 -06:00 committed by GitHub
commit d17678b5b2
1 changed files with 5 additions and 0 deletions

View File

@ -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';