mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 00:27:58 +08:00
FIX: add context for deactivated user logs
This commit is contained in:
@ -300,7 +300,8 @@ const AdminUser = Discourse.User.extend({
|
||||
|
||||
deactivate() {
|
||||
return ajax('/admin/users/' + this.id + '/deactivate', {
|
||||
type: 'PUT'
|
||||
type: 'PUT',
|
||||
data: { context: document.location.pathname }
|
||||
}).then(function() {
|
||||
window.location.reload();
|
||||
}).catch(function(e) {
|
||||
|
Reference in New Issue
Block a user