Apply suggestion to lib/pleroma/plugs/oauth_scopes_plug.ex
This commit is contained in:
parent
847c7f02f5
commit
e4f3d7f69d
@ -61,9 +61,10 @@ def filter_descendants(scopes, supported_scopes) do
|
|||||||
end
|
end
|
||||||
|
|
||||||
defp maybe_perform_instance_privacy_check(%Plug.Conn{} = conn, options) do
|
defp maybe_perform_instance_privacy_check(%Plug.Conn{} = conn, options) do
|
||||||
case options[:skip_instance_privacy_check] do
|
if options[:skip_instance_privacy_check] do
|
||||||
true -> conn
|
conn
|
||||||
_ -> EnsurePublicOrAuthenticatedPlug.call(conn, [])
|
else
|
||||||
|
EnsurePublicOrAuthenticatedPlug.call(conn, [])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user