regression, users could not be deleted

This commit is contained in:
Sam 2015-08-14 12:34:52 +10:00
parent ad2de1804e
commit 723d49d543

View File

@ -60,7 +60,7 @@ export default Ember.Controller.extend(CanCheckEmails, {
actions: {
adminDelete: function() {
Discourse.AdminUser.find(this.get('username').toLowerCase()).then(function(user){
Discourse.AdminUser.find(this.get('model.username').toLowerCase()).then(function(user){
user.destroy({deletePosts: true});
});
},