fix bug with public registration
This commit is contained in:
		| @@ -384,7 +384,7 @@ defmodule Memex.Accounts do | ||||
|   """ | ||||
|   @spec allow_registration?() :: boolean() | ||||
|   def allow_registration? do | ||||
|     Application.get_env(:Memex, MemexWeb.Endpoint)[:registration] == "public" or | ||||
|     Application.get_env(:memex, Memex.Accounts)[:registration] == "public" or | ||||
|       list_users_by_role(:admin) |> Enum.empty?() | ||||
|   end | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user