[Admin Tooling] Log comment deletion (#9968)
* Log comment deletion * Fix my STUPID mistake!
This commit is contained in:
parent
d4a2f24c88
commit
df900cfd98
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ class CommentsController < ApplicationController
|
|||
before_action :set_cache_control_headers, only: [:index]
|
||||
before_action :authenticate_user!, only: %i[preview create hide unhide]
|
||||
after_action :verify_authorized
|
||||
after_action only: [:moderator_create] do
|
||||
after_action only: %i[moderator_create admin_delete] do
|
||||
Audit::Logger.log(:moderator, current_user, params.dup)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue