Merge pull request #20381 from nextcloud/fix/allow_edit_admin_user
Allow to edit admin user
This commit is contained in:
commit
9bd9c2bf32
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 { PopoverMenu, Actions, ActionButton } from '@nextcloud/vue'
|
||||||
import ClickOutside from 'vue-click-outside'
|
import ClickOutside from 'vue-click-outside'
|
||||||
import { getCurrentUser } from '@nextcloud/auth'
|
import { getCurrentUser } from '@nextcloud/auth'
|
||||||
|
|
||||||
import UserRowMixin from '../../mixins/UserRowMixin'
|
import UserRowMixin from '../../mixins/UserRowMixin'
|
||||||
export default {
|
export default {
|
||||||
name: 'UserRowSimple',
|
name: 'UserRowSimple',
|
||||||
|
@ -148,7 +147,7 @@ export default {
|
||||||
return t('settings', '{size} used', { size: OC.Util.humanFileSize(0) })
|
return t('settings', '{size} used', { size: OC.Util.humanFileSize(0) })
|
||||||
},
|
},
|
||||||
canEdit() {
|
canEdit() {
|
||||||
return getCurrentUser().uid !== this.user.id && this.user.id !== 'admin'
|
return getCurrentUser().uid !== this.user.id || this.settings.isAdmin
|
||||||
},
|
},
|
||||||
userQuota() {
|
userQuota() {
|
||||||
if (this.user.quota.quota === 'none') {
|
if (this.user.quota.quota === 'none') {
|
||||||
|
@ -159,7 +158,6 @@ export default {
|
||||||
}
|
}
|
||||||
return OC.Util.humanFileSize(0)
|
return OC.Util.humanFileSize(0)
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
hideMenu() {
|
hideMenu() {
|
||||||
|
|
Loading…
Reference in New Issue