[muc subdomain] forbid admin to add a muc subdomain (reserved to xmpp)

This commit is contained in:
Gabriel 2021-02-09 18:54:31 +01:00
parent 4432d28c09
commit 1fb42bb8af

View file

@ -103,6 +103,9 @@ def domain_add(operation_logger, domain, dyndns=False):
if domain.startswith("xmpp-upload."): if domain.startswith("xmpp-upload."):
raise YunohostError("domain_cannot_add_xmpp_upload") raise YunohostError("domain_cannot_add_xmpp_upload")
if domain.startswith("muc."):
raise YunohostError("domain_cannot_add_muc_upload")
ldap = _get_ldap_interface() ldap = _get_ldap_interface()
try: try: