fixup! centralize allow registration check logic

This commit is contained in:
shibao 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,6 +1,7 @@
defmodule CanneryWeb.Live.Component.Topbar do
use CanneryWeb, :live_component
alias Cannery.{Accounts}
alias CanneryWeb.{HomeLive}
def mount(socket) do

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