When banning a user, a reason can be provided. The user will see this reason when trying to log in. Also log bans and unbans in the staff action logs.

This commit is contained in:
Neil Lalonde
2013-11-01 10:47:26 -04:00
parent 52b0c1c45f
commit 92a0729937
17 changed files with 180 additions and 26 deletions
@@ -28,6 +28,13 @@ Discourse.AdminUserRoute = Discourse.Route.extend({
controller.set('model', adminUser);
window.scrollTo(0, 0);
});
},
actions: {
showBanModal: function(user) {
Discourse.Route.showModal(this, 'admin_ban_user', user);
this.controllerFor('modal').set('modalClass', 'ban-user-modal');
}
}
});