mirror of
https://github.com/discourse/discourse.git
synced 2026-08-26 13:17:20 -05:00
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:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user