mirror of
https://github.com/nextcloud/server.git
synced 2026-06-07 07:43:18 -04:00
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> (cherry picked from commit 85e7887e0764a9347bbbb10812459d95ccdfa6d4)
This commit is contained in:
parent
e32d38375a
commit
a9d86c1f95
3 changed files with 3 additions and 3 deletions
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -52,5 +52,5 @@ interface IProvideEnabledStateBackend {
|
|||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public function getDisabledUserList(int $offset = 0, ?int $limit = null): array;
|
||||
public function getDisabledUserList(?int $limit = null, int $offset = 0): array;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue