mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-09 11:55:09 +01: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
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
authorize :report_note, :create?
|
authorize ReportNote, :create?
|
||||||
authorize @report, :update? if truthy_param?(:resolve_report) || truthy_param?(:unresolve_report)
|
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))
|
@report_note = current_account.report_notes.new(report_note_params.merge(report_id: @report.id))
|
||||||
|
Loading…
Reference in New Issue
Block a user