diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2019-04-03 15:00:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-03 15:00:15 +0300 |
commit | 57e91f8fcd511e9586a2b80560a2014b54c55eb6 (patch) | |
tree | e8e163b359ccb9c376c289dfc674124eb31fbe83 | |
parent | 1ef520d4e8012393c13e72890bb36e6e8a8af340 (diff) | |
parent | fa72fd0d759dce8a35b73b42fd85d0d7c073b4fd (diff) |
Merge pull request #90 from nextcloud/bugfix/82/dont_show_disabled_admins
don't list disabled admins, fixes #82
-rw-r--r-- | lib/Controller/PersonalController.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Controller/PersonalController.php b/lib/Controller/PersonalController.php index 84a456a..6b7a56b 100644 --- a/lib/Controller/PersonalController.php +++ b/lib/Controller/PersonalController.php @@ -97,6 +97,10 @@ class PersonalController extends Controller { $adminUsers = $adminGroup->getUsers(); $uids = []; foreach($adminUsers as $adminUser) { + if (!$adminUser->isEnabled()) { + continue; + } + $uids[] = [ 'id' => $adminUser->getUID(), 'displayname' => $adminUser->getDisplayName(), |