mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -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: {
|
actions: {
|
||||||
adminDelete: function() {
|
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});
|
user.destroy({deletePosts: true});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user