mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +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)
|
||||
end)
|
||||
|> Conn.assign(:current_ban, nil)
|
||||
|
||||
true ->
|
||||
Conn.assign(conn, :current_ban, ban)
|
||||
|
|
Loading…
Reference in a new issue