diff options
author | GretaD <gretadoci@gmail.com> | 2020-04-09 12:41:30 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-04-16 11:59:01 +0200 |
commit | d17c58eeec763c4faa62317f5f1b8ea2e09379fb (patch) | |
tree | 05d994c5f30de6d1431b98135bf43d5e899a33d1 /apps/settings/src | |
parent | 8971403ada3da110dc0835853e83f231103b11d9 (diff) | |
download | nextcloud-server-d17c58eeec763c4faa62317f5f1b8ea2e09379fb.tar.gz nextcloud-server-d17c58eeec763c4faa62317f5f1b8ea2e09379fb.zip |
Allow to edit admin user
Signed-off-by: GretaD <gretadoci@gmail.com>
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/settings/src')
-rw-r--r-- | apps/settings/src/components/UserList/UserRowSimple.vue | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/settings/src/components/UserList/UserRowSimple.vue b/apps/settings/src/components/UserList/UserRowSimple.vue index eb4df3a92d6..5fc53d928ab 100644 --- a/apps/settings/src/components/UserList/UserRowSimple.vue +++ b/apps/settings/src/components/UserList/UserRowSimple.vue @@ -83,7 +83,6 @@ import { PopoverMenu, Actions, ActionButton } from '@nextcloud/vue' import ClickOutside from 'vue-click-outside' import { getCurrentUser } from '@nextcloud/auth' - import UserRowMixin from '../../mixins/UserRowMixin' export default { name: 'UserRowSimple', @@ -148,7 +147,7 @@ export default { return t('settings', '{size} used', { size: OC.Util.humanFileSize(0) }) }, canEdit() { - return getCurrentUser().uid !== this.user.id && this.user.id !== 'admin' + return getCurrentUser().uid !== this.user.id || this.settings.isAdmin }, userQuota() { if (this.user.quota.quota === 'none') { @@ -159,7 +158,6 @@ export default { } return OC.Util.humanFileSize(0) }, - }, methods: { hideMenu() { |