diff --git a/app/api/server/v1/users.js b/app/api/server/v1/users.js index dd0d0f72a3df..394bed371d67 100644 --- a/app/api/server/v1/users.js +++ b/app/api/server/v1/users.js @@ -265,7 +265,7 @@ API.v1.addRoute('users.setAvatar', { authRequired: true }, { let user; if (this.isUserFromParams()) { user = Meteor.users.findOne(this.userId); - } else if (hasPermission(this.userId, 'edit-other-user-info')) { + } else if (hasPermission(this.userId, 'edit-other-user-avatar')) { user = this.getUserFromParams(); } else { return API.v1.unauthorized(); diff --git a/app/authorization/server/startup.js b/app/authorization/server/startup.js index d79acd6d8706..0ec0476ec9de 100644 --- a/app/authorization/server/startup.js +++ b/app/authorization/server/startup.js @@ -35,6 +35,7 @@ Meteor.startup(function() { { _id: 'edit-other-user-active-status', roles : ['admin'] }, { _id: 'edit-other-user-info', roles : ['admin'] }, { _id: 'edit-other-user-password', roles : ['admin'] }, + { _id: 'edit-other-user-avatar', roles : ['admin'] }, { _id: 'edit-privileged-setting', roles : ['admin'] }, { _id: 'edit-room', roles : ['admin', 'owner', 'moderator'] }, { _id: 'edit-room-retention-policy', roles : ['admin'] }, diff --git a/app/ui-flextab/client/tabs/userEdit.html b/app/ui-flextab/client/tabs/userEdit.html index 41285ff3a39e..ba9cc33496df 100644 --- a/app/ui-flextab/client/tabs/userEdit.html +++ b/app/ui-flextab/client/tabs/userEdit.html @@ -3,24 +3,74 @@

{{_ "You_are_not_authorized_to_view_this_page"}}

{{else}}
-
-