fixup! Implement Admin Report Notes API

This commit is contained in:
Emelia Smith 2024-11-20 20:20:51 +01:00
parent d54dc8983a
commit 1bc1d923cb
No known key found for this signature in database

View file

@ -28,7 +28,7 @@ class Api::V1::Admin::Reports::NotesController < Api::BaseController
end
def create
authorize :report_note, :create?
authorize ReportNote, :create?
authorize @report, :update? if truthy_param?(:resolve_report) || truthy_param?(:unresolve_report)
@report_note = current_account.report_notes.new(report_note_params.merge(report_id: @report.id))