0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00

Merge pull request #4474 from ErisDS/profilefix

Fixing logic for editors deleting themselves
This commit is contained in:
Sebastian Gierlinger 2014-11-18 13:20:30 +01:00
commit 312a0fb8c4

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