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 8662015560
commit 8fd05ca1de

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