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:
commit
8435c58987
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue