mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 01:24:33 +08:00
FEATURE: admins can clear screend emails if needed
This commit is contained in:
@ -5,4 +5,10 @@ class Admin::ScreenedEmailsController < Admin::AdminController
|
||||
render_serialized(screened_emails, ScreenedEmailSerializer)
|
||||
end
|
||||
|
||||
def destroy
|
||||
screen = ScreenedEmail.find(params[:id].to_i)
|
||||
screen.destroy!
|
||||
render json: success_json
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user