fix for auth check
This commit is contained in:
parent
631e8c1feb
commit
4a487e4d0b
|
@ -7,7 +7,7 @@ defmodule Pleroma.Web.PleromaAPI.EmojiAPIController do
|
||||||
Pleroma.Plugs.OAuthScopesPlug,
|
Pleroma.Plugs.OAuthScopesPlug,
|
||||||
%{scopes: ["write"], admin: true}
|
%{scopes: ["write"], admin: true}
|
||||||
when action in [
|
when action in [
|
||||||
:import,
|
:import_from_filesystem,
|
||||||
:remote,
|
:remote,
|
||||||
:download,
|
:download,
|
||||||
:create,
|
:create,
|
||||||
|
@ -22,7 +22,7 @@ defmodule Pleroma.Web.PleromaAPI.EmojiAPIController do
|
||||||
plug(
|
plug(
|
||||||
:skip_plug,
|
:skip_plug,
|
||||||
[Pleroma.Plugs.OAuthScopesPlug, Pleroma.Plugs.ExpectPublicOrAuthenticatedCheckPlug]
|
[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
|
def remote(conn, %{"url" => url}) do
|
||||||
|
|
Loading…
Reference in New Issue