[#1427] Initial support for OAuth admin scopes.

This commit is contained in:
Ivan Tashkinov 2019-11-29 18:57:19 +03:00
commit 51111e286b
4 changed files with 43 additions and 19 deletions

View file

@ -7,7 +7,7 @@ defmodule Pleroma.Web.PleromaAPI.EmojiAPIController do
plug(
OAuthScopesPlug,
%{scopes: ["write"]}
%{scopes: ["admin:write", "write"]}
when action in [
:create,
:delete,