0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Merge pull request #3571 from felixrieseberg/iss3570

Show "Make Owner" only if displayed user is admin
This commit is contained in:
Hannah Wolfe 2014-08-03 17:20:54 +01:00
commit 8435c58987

View file

@ -7,7 +7,7 @@ var SettingsUserView = Ember.View.extend({
canAssignRoles: Ember.computed.or('currentUser.isAdmin', 'currentUser.isOwner'),
canMakeOwner: Ember.computed.and('currentUser.isOwner', 'isNotOwnProfile'),
canMakeOwner: Ember.computed.and('currentUser.isOwner', 'isNotOwnProfile', 'controller.user.isAdmin'),
rolesDropdownIsVisible: Ember.computed.and('isNotOwnProfile', 'canAssignRoles'),