Skip to content

Commit

Permalink
default to invite_only in ce (#4616)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslandoga authored Oct 4, 2024
1 parent 6940281 commit c829163
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,13 @@ is_selfhost =
|> get_var_from_path_or_env("SELFHOST", "true")
|> String.to_existing_atom()

# by default, registration is disabled in self-hosted setups
disable_registration_default = to_string(is_selfhost)
# by default, only registration from invites is enabled in CE
disable_registration_default =
if config_env() == :ce do
"invite_only"
else
"false"
end

disable_registration =
config_dir
Expand Down

0 comments on commit c829163

Please sign in to comment.