mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03: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:
parent
8662015560
commit
8fd05ca1de
@ -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'),
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user