Skip to content

Commit

Permalink
Merge pull request #20381 from nextcloud/fix/allow_edit_admin_user
Browse files Browse the repository at this point in the history
Allow to edit admin user
  • Loading branch information
MorrisJobke authored Apr 17, 2020
2 parents a8809f0 + d17c58e commit 9bd9c2b
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 100 deletions.
89 changes: 0 additions & 89 deletions apps/settings/js/vue-4.js

This file was deleted.

1 change: 0 additions & 1 deletion apps/settings/js/vue-4.js.map

This file was deleted.

6 changes: 3 additions & 3 deletions apps/settings/js/vue-6.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/settings/js/vue-6.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions apps/settings/js/vue-settings-apps-users-management.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/settings/js/vue-settings-apps-users-management.js.map

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions apps/settings/src/components/UserList/UserRowSimple.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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') {
Expand All @@ -159,7 +158,6 @@ export default {
}
return OC.Util.humanFileSize(0)
},
},
methods: {
hideMenu() {
Expand Down

0 comments on commit 9bd9c2b

Please sign in to comment.