Apply suggestion to lib/pleroma/web/admin_api/admin_api_controller.ex
This commit is contained in:
parent
c8bfbf511e
commit
4c60fdcbb1
|
@ -592,7 +592,7 @@ def email_invite(%{assigns: %{user: user}} = conn, %{"email" => email} = params)
|
||||||
{:registrations_open, _} ->
|
{:registrations_open, _} ->
|
||||||
errors(
|
errors(
|
||||||
conn,
|
conn,
|
||||||
{:error, "To send invites you need set `registrations_open` option to false."}
|
{:error, "To send invites you need to set the `registrations_open` option to false."}
|
||||||
)
|
)
|
||||||
|
|
||||||
{:invites_enabled, _} ->
|
{:invites_enabled, _} ->
|
||||||
|
|
Loading…
Reference in New Issue