]> source.dussan.org Git - nextcloud-server.git/commit
do not flip available state to unavailable, allow empty results 21559/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Tue, 11 Aug 2020 16:53:50 +0000 (18:53 +0200)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Tue, 11 Aug 2020 17:03:27 +0000 (19:03 +0200)
commit7eb6d8df0add6c862e84bdb0bb618380fbc04bda
tree8af276103fc3fa7cf3c4b29f80e74ae93b4a3061
parent7ea262dba03cceefe0646f2216b506d66c3dcbc9
do not flip available state to unavailable, allow empty results

- the detection relies that the first, requested result is not empty
- it might be empty though – groups without members
- protect switching from available to unavailable
  - switching the other way around was also not envisaged either

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/user_ldap/lib/Connection.php
apps/user_ldap/lib/Group_LDAP.php
apps/user_ldap/tests/Group_LDAPTest.php