diff --git a/lib/mobilizon/events/events.ex b/lib/mobilizon/events/events.ex index 8e59665b7..91632615c 100644 --- a/lib/mobilizon/events/events.ex +++ b/lib/mobilizon/events/events.ex @@ -676,14 +676,14 @@ defmodule Mobilizon.Events do end @doc """ - Get the default participant role depending on the event visbility + Get the default participant role depending on the event join options """ def get_default_participant_role(%Event{} = event) do - case event.visibility do + case event.join_options do # Participant - :public -> 1 + :free -> :participant # Not approved - _ -> 0 + _ -> :not_approved end end