mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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