mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 19:53:53 -06:00
regression, users could not be deleted
This commit is contained in:
parent
ad2de1804e
commit
723d49d543
@ -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});
|
||||
});
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user