mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix(LDAP): do not count mapped users x-times active configs
- the method counts all rows in the mapping tables, which are not specific to single configurations, but contains users from all Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
e70cf9c14b
commit
9beb5a90ea
1 changed files with 1 additions and 6 deletions
|
|
@ -415,12 +415,7 @@ class User_Proxy extends Proxy implements IUserBackend, UserInterface, IUserLDAP
|
|||
*/
|
||||
public function countMappedUsers(): int {
|
||||
$this->setup();
|
||||
|
||||
$users = 0;
|
||||
foreach ($this->backends as $backend) {
|
||||
$users += $backend->countMappedUsers();
|
||||
}
|
||||
return $users;
|
||||
return $this->refBackend?->countMappedUsers() ?? 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue