Add missing action logging to api/v1/admin/reports#update
(#29044)
This commit is contained in:
parent
a31427a629
commit
4cf07ed78c
3 changed files with 32 additions and 5 deletions
|
@ -35,6 +35,7 @@ class Api::V1::Admin::ReportsController < Api::BaseController
|
|||
def update
|
||||
authorize @report, :update?
|
||||
@report.update!(report_params)
|
||||
log_action :update, @report
|
||||
render json: @report, serializer: REST::Admin::ReportSerializer
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue