mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
ensure CB is assigned
This commit is contained in:
parent
ec1a999913
commit
5dfd8f5b60
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ defmodule PhilomenaWeb.CurrentBanPlug do
|
||||||
|
|
||||||
pass(error?(), conn)
|
pass(error?(), conn)
|
||||||
end)
|
end)
|
||||||
|
|> Conn.assign(:current_ban, nil)
|
||||||
|
|
||||||
true ->
|
true ->
|
||||||
Conn.assign(conn, :current_ban, ban)
|
Conn.assign(conn, :current_ban, ban)
|
||||||
|
|
Loading…
Reference in a new issue