feat(back): add admin setting to disable external event feature

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-09-01 18:16:06 +02:00
parent af670f3947
commit f6611e8eb5
8 changed files with 48 additions and 2 deletions

View File

@@ -357,6 +357,10 @@ defmodule Mobilizon.Config do
def instance_event_creation_enabled?,
do: :mobilizon |> Application.get_env(:events) |> Keyword.get(:creation)
@spec instance_event_external_enabled? :: boolean
def instance_event_external_enabled?,
do: :mobilizon |> Application.get_env(:events) |> Keyword.get(:external)
@spec instance_export_formats :: %{event_participants: list(String.t())}
def instance_export_formats do
%{