Fixing logic for editors deleting themselves

no issue
- no user is allowed to delete their own account
This commit is contained in:
Hannah Wolfe 2014-11-18 11:37:35 +00:00
parent 09bd71fcdb
commit 7317259c89

View File

@ -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;
}