fix bug with public registration being disabled

This commit is contained in:
2023-02-04 09:55:38 -05:00
committed by oliviasculley
parent 1fbed50b0f
commit f19d024d8a
3 changed files with 7 additions and 5 deletions

View File

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