fix for auth check

This commit is contained in:
Alexander Strizhakov 2020-04-30 17:50:57 +03:00
parent 631e8c1feb
commit 4a487e4d0b
No known key found for this signature in database
GPG Key ID: 022896A53AEF1381
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ defmodule Pleroma.Web.PleromaAPI.EmojiAPIController do
Pleroma.Plugs.OAuthScopesPlug,
%{scopes: ["write"], admin: true}
when action in [
:import,
:import_from_filesystem,
:remote,
:download,
:create,
@ -22,7 +22,7 @@ defmodule Pleroma.Web.PleromaAPI.EmojiAPIController do
plug(
:skip_plug,
[Pleroma.Plugs.OAuthScopesPlug, Pleroma.Plugs.ExpectPublicOrAuthenticatedCheckPlug]
when action in [:download_shared, :list_packs, :list_from]
when action in [:archive, :show, :list]
)
def remote(conn, %{"url" => url}) do