fix oauth scopes for AdminApi#reports_update

This commit is contained in:
Maksim Pechnikov 2019-12-24 20:45:46 +03:00
commit 385356aad0
2 changed files with 25 additions and 1 deletions

View file

@ -66,7 +66,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
plug(
OAuthScopesPlug,
%{scopes: ["write:reports"], admin: true}
when action in [:report_update_state, :report_respond]
when action in [:reports_update]
)
plug(