fix bug with public registration

This commit is contained in:
2023-02-04 09:56:34 -05:00
parent 2f8af8ae4f
commit 084173909e
12 changed files with 48 additions and 44 deletions

View File

@ -384,7 +384,7 @@ defmodule Cannery.Accounts do
"""
@spec allow_registration?() :: boolean()
def allow_registration? do
Application.get_env(:Cannery, CanneryWeb.Endpoint)[:registration] == "public" or
Application.get_env(:cannery, Cannery.Accounts)[:registration] == "public" or
list_users_by_role(:admin) |> Enum.empty?()
end