From 7317259c89e809dc0fad12f6cc0b97e2cec89e78 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Tue, 18 Nov 2014 11:37:35 +0000 Subject: [PATCH] Fixing logic for editors deleting themselves no issue - no user is allowed to delete their own account --- 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 55100ccdb6..40d5825caa 100644 --- a/core/client/views/settings/users/user.js +++ b/core/client/views/settings/users/user.js @@ -15,7 +15,7 @@ var SettingsUserView = Ember.View.extend({ deleteUserActionIsVisible: Ember.computed('currentUser', 'canAssignRoles', 'controller.user', function () { if ((this.get('canAssignRoles') && this.get('isNotOwnProfile') && !this.get('controller.user.isOwner')) || - (this.get('currentUser.isEditor') && (!this.get('isNotOwnProfile') || + (this.get('currentUser.isEditor') && (this.get('isNotOwnProfile') || this.get('controller.user.isAuthor')))) { return true; }