ensure CB is assigned

This commit is contained in:
byte[] 2020-06-03 21:26:38 -04:00
parent ec1a999913
commit 5dfd8f5b60

View file

@ -34,6 +34,7 @@ defmodule PhilomenaWeb.CurrentBanPlug do
pass(error?(), conn)
end)
|> Conn.assign(:current_ban, nil)
true ->
Conn.assign(conn, :current_ban, ban)