mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-25 23:13:33 +00:00
fixup! Implement Admin Report Notes API
This commit is contained in:
parent
d54dc8983a
commit
1bc1d923cb
|
@ -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