mirror of
https://github.com/nextcloud/server.git
synced 2026-03-27 04:43:20 -04:00
Allow to edit admin user
Signed-off-by: GretaD <gretadoci@gmail.com> Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
8971403ada
commit
d17c58eeec
7 changed files with 8 additions and 100 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue