[Admin Tooling] Log comment deletion (#9968)

* Log comment deletion

* Fix my STUPID mistake!
This commit is contained in:
Arit Amana 2020-08-24 10:30:16 -04:00 committed by GitHub
parent d4a2f24c88
commit df900cfd98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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