prosody: Only allow admins to send invites via adhoc

This commit is contained in:
Matthew Wild 2021-01-28 09:01:08 +00:00
parent 649ab3c3db
commit 5f6f060480
1 changed files with 6 additions and 0 deletions

View File

@ -124,6 +124,12 @@ legacy_ssl_ports = { 5223 }
allow_registration = true
registration_invite_only = true
-- This disables in-app invites for non-admins
-- TODO: The plan is to enable it once we can
-- give the admin more fine-grained control
-- over what happens when a user invites someone.
allow_contact_invites = false
invites_page = ENV_SNIKKET_INVITE_URL or ("https://"..DOMAIN.."/invite?{invite.token}");
invites_page_external = true