[#1427] Fixes / improvements of admin scopes support. Added tests.
This commit is contained in:
parent
93a80ee915
commit
40e1817f70
6 changed files with 162 additions and 58 deletions
|
|
@ -7,7 +7,7 @@ defmodule Pleroma.Web.PleromaAPI.EmojiAPIController do
|
|||
|
||||
plug(
|
||||
OAuthScopesPlug,
|
||||
%{scopes: Pleroma.Config.oauth_admin_scopes("write")}
|
||||
%{scopes: ["write"], admin: true}
|
||||
when action in [
|
||||
:create,
|
||||
:delete,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue