fixup! centralize allow registration check logic

This commit is contained in:
2021-09-10 00:30:08 -04:00
committed by oliviasculley
parent 62b48e5fab
commit 93235558e2
2 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
defmodule CanneryWeb.LayoutView do
use CanneryWeb, :view
alias Cannery.{Accounts}
def get_title(conn) do
if conn.assigns |> Map.has_key?(:title) do