Quellcode durchsuchen

Convert the group limit to match the same behaviour as the user search

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
tags/v12.0.0beta1
Juan Pablo Villafáñez vor 8 Jahren
Ursprung
Commit
9e2e0c4c30
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  1. 5
    0
      apps/user_ldap/lib/Command/Search.php

+ 5
- 0
apps/user_ldap/lib/Command/Search.php Datei anzeigen

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

Laden…
Abbrechen
Speichern