[#2409] Fixed before-action callback results persistence.
This commit is contained in:
parent
0062116e07
commit
89f38d94c7
@ -67,10 +67,10 @@ defmodule Pleroma.Web do
|
|||||||
|
|
||||||
# Executed just before actual controller action, invokes before-action hooks (callbacks)
|
# Executed just before actual controller action, invokes before-action hooks (callbacks)
|
||||||
defp action(conn, params) do
|
defp action(conn, params) do
|
||||||
with %Plug.Conn{halted: false} <- maybe_drop_authentication_if_oauth_check_ignored(conn),
|
with %{halted: false} = conn <- maybe_drop_authentication_if_oauth_check_ignored(conn),
|
||||||
%Plug.Conn{halted: false} <- maybe_perform_public_or_authenticated_check(conn),
|
%{halted: false} = conn <- maybe_perform_public_or_authenticated_check(conn),
|
||||||
%Plug.Conn{halted: false} <- maybe_perform_authenticated_check(conn),
|
%{halted: false} = conn <- maybe_perform_authenticated_check(conn),
|
||||||
%Plug.Conn{halted: false} <- maybe_halt_on_missing_oauth_scopes_check(conn) do
|
%{halted: false} = conn <- maybe_halt_on_missing_oauth_scopes_check(conn) do
|
||||||
super(conn, params)
|
super(conn, params)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user