prosody: Disable user invitations for restricted users

Note that this currently has no effect, because user and contact invitations
are disabled globally for non-admins.
This commit is contained in:
Matthew Wild 2021-11-09 12:01:59 +00:00
parent 263d5cf286
commit 40daaa883b
1 changed files with 3 additions and 0 deletions

View File

@ -141,6 +141,9 @@ registration_invite_only = true
-- over what happens when a user invites someone.
allow_contact_invites = false
-- Disallow restricted users to create invitations to the server
deny_user_invites_by_roles = { "prosody:restricted" }
invites_page = ENV_SNIKKET_INVITE_URL or ("https://"..DOMAIN.."/invite/{invite.token}/");
invites_page_external = true