diff options
Diffstat (limited to 'settings/src')
-rw-r--r-- | settings/src/components/userList.vue | 4 | ||||
-rw-r--r-- | settings/src/main.js | 1 |
2 files changed, 5 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() { diff --git a/settings/src/main.js b/settings/src/main.js index e09925a95de..c853635609e 100644 --- a/settings/src/main.js +++ b/settings/src/main.js @@ -12,6 +12,7 @@ sync(store, router); Vue.prototype.t = t; Vue.prototype.OC = OC; Vue.prototype.oc_userconfig = oc_userconfig; +Vue.prototype.oc_current_user = oc_current_user; const app = new Vue({ router, |