Send a suspension message via email to a user

This commit is contained in:
Robin Ward
2017-09-13 14:43:36 -04:00
parent 2a56cf8bb6
commit 677b016387
7 changed files with 123 additions and 23 deletions

View File

@ -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() {