Send context of where a user was deleted as a spammer so it can be logged

This commit is contained in:
Neil Lalonde 2013-08-07 18:18:18 -04:00
parent 949b2068a5
commit b6b30dabd4
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ Discourse.AdminUser = Discourse.User.extend({
"callback": function() {
Discourse.ajax("/admin/users/" + user.get('id') + '.json', {
type: 'DELETE',
data: {delete_posts: true, block_email: true}
data: {delete_posts: true, block_email: true, context: window.location.pathname}
}).then(function(data) {
if (data.deleted) {
bootbox.alert(I18n.t("admin.user.deleted"), function() {