mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 04:01:18 +08:00
Work in Progress: Content Editing in Admin Section
This commit is contained in:
@ -25,6 +25,7 @@ class Admin::UsersController < Admin::AdminController
|
||||
@user.delete_all_posts!(guardian)
|
||||
render nothing: true
|
||||
end
|
||||
|
||||
def ban
|
||||
@user = User.where(id: params[:user_id]).first
|
||||
guardian.ensure_can_ban!(@user)
|
||||
|
Reference in New Issue
Block a user