diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-05-24 11:29:48 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-05-24 17:52:15 +0200 |
commit | c55cf79453a91bbe58759c3188060c9e620e8f62 (patch) | |
tree | 8f498754e0173a96698c5a175e3c0804f87e00ab /settings/src/components/userList.vue | |
parent | ddd1c8bc8689017559f6d6af36898fb7ddb28adb (diff) | |
download | nextcloud-server-c55cf79453a91bbe58759c3188060c9e620e8f62.tar.gz nextcloud-server-c55cf79453a91bbe58759c3188060c9e620e8f62.zip |
Added total count for subadmins
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'settings/src/components/userList.vue')
-rw-r--r-- | settings/src/components/userList.vue | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/settings/src/components/userList.vue b/settings/src/components/userList.vue index c7127706269..f7aec953ecc 100644 --- a/settings/src/components/userList.vue +++ b/settings/src/components/userList.vue @@ -179,6 +179,10 @@ export default { } return disabledUsers; } + if (!settings.isAdmin) { + // We don't want subadmins to edit themselves + return this.users.filter(user => user.enabled !== false && user.id !== oc_current_user); + } return this.users.filter(user => user.enabled !== false); }, groups() { |