From 1bc1d923cb02ba44431a8e8da48369ac6e263c1e Mon Sep 17 00:00:00 2001 From: Emelia Smith Date: Wed, 20 Nov 2024 20:20:51 +0100 Subject: [PATCH] fixup! Implement Admin Report Notes API --- app/controllers/api/v1/admin/reports/notes_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/admin/reports/notes_controller.rb b/app/controllers/api/v1/admin/reports/notes_controller.rb index 1f6f40e4e3..1eabd65772 100644 --- a/app/controllers/api/v1/admin/reports/notes_controller.rb +++ b/app/controllers/api/v1/admin/reports/notes_controller.rb @@ -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))