aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-10-19 10:35:49 +0200
committerChristopher Ng <chrng8@gmail.com>2023-11-30 17:15:12 -0800
commitadc43eae9b143c2c89a0fcb3e3222cbd68038217 (patch)
treee8c8ed42cf2af7b9e3408b143a2447cdeecaf201 /apps/user_ldap
parentceca099f294ce3048da58b5c4e76048ccafbc499 (diff)
downloadnextcloud-server-adc43eae9b143c2c89a0fcb3e3222cbd68038217.tar.gz
nextcloud-server-adc43eae9b143c2c89a0fcb3e3222cbd68038217.zip
Invert parameter order in getDisabledUserList to be consistent
This matches what was done in the calls and so fixes getting disabled user list when there are several backends returning disabled users. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib/User_LDAP.php2
-rw-r--r--apps/user_ldap/lib/User_Proxy.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/User_LDAP.php b/apps/user_ldap/lib/User_LDAP.php
index f9ae6bbee66..d787bfea4d4 100644
--- a/apps/user_ldap/lib/User_LDAP.php
+++ b/apps/user_ldap/lib/User_LDAP.php
@@ -682,7 +682,7 @@ class User_LDAP extends BackendUtility implements IUserBackend, UserInterface, I
return $enabled;
}
- public function getDisabledUserList(int $offset = 0, ?int $limit = null): array {
+ public function getDisabledUserList(?int $limit = null, int $offset = 0): array {
throw new \Exception('This is implemented directly in User_Proxy');
}
}
diff --git a/apps/user_ldap/lib/User_Proxy.php b/apps/user_ldap/lib/User_Proxy.php
index 919cddd99be..934bed7d450 100644
--- a/apps/user_ldap/lib/User_Proxy.php
+++ b/apps/user_ldap/lib/User_Proxy.php
@@ -463,7 +463,7 @@ class User_Proxy extends Proxy implements IUserBackend, UserInterface, IUserLDAP
return $this->handleRequest($uid, 'setUserEnabled', [$uid, $enabled, $queryDatabaseValue, $setDatabaseValue]);
}
- public function getDisabledUserList(int $offset = 0, ?int $limit = null): array {
+ public function getDisabledUserList(?int $limit = null, int $offset = 0): array {
return array_map(
fn (OfflineUser $user) => $user->getOCName(),
array_slice(