From 2f3520a6753284cce9c92fa1faeaadba99a433d9 Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Sat, 2 Aug 2014 07:02:50 -0700 Subject: [PATCH] Show "Make Owner" only if displayed user is admin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes #3570 - Added ‘controller.user.isAdmin’ as an condition for displaying the “make owner” option --- core/client/views/settings/users/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/client/views/settings/users/user.js b/core/client/views/settings/users/user.js index 68dd2f719e..f12c93d3c8 100644 --- a/core/client/views/settings/users/user.js +++ b/core/client/views/settings/users/user.js @@ -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'),