mirror of
https://github.com/nextcloud/server.git
synced 2026-05-14 01:21:32 -04:00
Merge pull request #21104 from nextcloud/backport/20676/stable17
[stable17] Don't remove last user in ldap group when limit is -1
This commit is contained in:
commit
fbf7c93293
1 changed files with 3 additions and 3 deletions
|
|
@ -828,6 +828,9 @@ class Group_LDAP extends BackendUtility implements \OCP\GroupInterface, IGroupLD
|
|||
return $groupUsers;
|
||||
}
|
||||
|
||||
if ($limit === -1) {
|
||||
$limit = null;
|
||||
}
|
||||
// check for cache of the query without limit and offset
|
||||
$groupUsers = $this->access->connection->getFromCache('usersInGroup-'.$gid.'-'.$search);
|
||||
if(!is_null($groupUsers)) {
|
||||
|
|
@ -836,9 +839,6 @@ class Group_LDAP extends BackendUtility implements \OCP\GroupInterface, IGroupLD
|
|||
return $groupUsers;
|
||||
}
|
||||
|
||||
if($limit === -1) {
|
||||
$limit = null;
|
||||
}
|
||||
$groupDN = $this->access->groupname2dn($gid);
|
||||
if(!$groupDN) {
|
||||
// group couldn't be found, return empty resultset
|
||||
|
|
|
|||
Loading…
Reference in a new issue