mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 19:11:58 +08:00
Send a suspension message via email to a user
This commit is contained in:
@ -244,17 +244,13 @@ const AdminUser = Discourse.User.extend({
|
||||
return ajax(`/admin/users/${this.id}/suspend`, {
|
||||
type: 'PUT',
|
||||
data
|
||||
}).then(result => {
|
||||
this.setProperties(result.suspension);
|
||||
});
|
||||
}).then(result => this.setProperties(result.suspension));
|
||||
},
|
||||
|
||||
unsuspend() {
|
||||
return ajax(`/admin/users/${this.id}/unsuspend`, {
|
||||
type: 'PUT'
|
||||
}).then(result => {
|
||||
this.setProperties(result.suspension);
|
||||
});
|
||||
}).then(result => this.setProperties(result.suspension));
|
||||
},
|
||||
|
||||
logOut() {
|
||||
|
Reference in New Issue
Block a user