mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 17:35:40 +01:00
fixup! Implement Admin Report Notes API
This commit is contained in:
parent
d54dc8983a
commit
1bc1d923cb
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue