[#1427] Initial support for OAuth admin scopes.
This commit is contained in:
parent
75efdb0781
commit
51111e286b
4 changed files with 43 additions and 19 deletions
|
|
@ -7,7 +7,7 @@ defmodule Pleroma.Web.PleromaAPI.EmojiAPIController do
|
|||
|
||||
plug(
|
||||
OAuthScopesPlug,
|
||||
%{scopes: ["write"]}
|
||||
%{scopes: ["admin:write", "write"]}
|
||||
when action in [
|
||||
:create,
|
||||
:delete,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue