diff options
author | Georg Ehrke <developer@georgehrke.com> | 2019-04-03 14:30:36 +0300 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2019-04-03 14:30:36 +0300 |
commit | fa72fd0d759dce8a35b73b42fd85d0d7c073b4fd (patch) | |
tree | adc1d079ff10b492cdff6ce0a2c9a416ffe8b415 /lib | |
parent | 6055ea55d7f1263ba684a0ded42a1e752f9004f1 (diff) |
don't list disabled admins, fixes #82
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'lib')
-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(), |