0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Show "Make Owner" only if displayed user is admin

closes #3570
- Added ‘controller.user.isAdmin’ as an condition for displaying the
“make owner” option
This commit is contained in:
Felix Rieseberg 2014-08-02 07:02:50 -07:00
parent d35598457b
commit 2f3520a675

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'),