Merge branch 'fix-admin-api-scope' into 'develop'
fix oauth scopes for AdminApi#reports_update See merge request pleroma/pleroma!2087
This commit is contained in:
commit
c814f22030
2 changed files with 25 additions and 1 deletions
|
|
@ -75,7 +75,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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue