FIX: new users were not able to self delete

This commit is contained in:
Arpit Jalan 2016-01-05 08:40:27 +05:30
parent 0096efadc8
commit 294f0e6491
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@ export default Ember.Controller.extend(CanCheckEmails, {
}
},
cannotDeleteAccount: Em.computed.not('can_delete_account'),
deleteDisabled: Em.computed.or('saving', 'deleting', 'cannotDeleteAccount'),
cannotDeleteAccount: Em.computed.not('currentUser.can_delete_account'),
deleteDisabled: Em.computed.or('model.isSaving', 'deleting', 'cannotDeleteAccount'),
canEditName: setting('enable_names'),