]> source.dussan.org Git - nextcloud-server.git/commit
do not flip available state to unavailable, allow empty results
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 23:19:46 +0000 (01:19 +0200)
commiteb1277e78fe298f52997c71c3dc906282fe05275
tree0aa70003e9a00562fcf78a6fc9e3c3db3d6861f5
parent41eb1c0f86071a7294b7a2ab54fdde46fe707a35
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