mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 18:34:39 +03:00
Fixing logic for editors deleting themselves
no issue - no user is allowed to delete their own account
This commit is contained in:
parent
09bd71fcdb
commit
7317259c89
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user