From 1b73dff3a5d72361e4f56476c98af19dc3f4fe84 Mon Sep 17 00:00:00 2001 From: Remi Date: Thu, 7 Jul 2016 12:59:56 +0200 Subject: [PATCH] bug fix: sub admin were proposed to install hosting_tld for new user, but the domain creation silently failed --- bureau/class/m_admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bureau/class/m_admin.php b/bureau/class/m_admin.php index 1e817c72..e3c2f0e4 100644 --- a/bureau/class/m_admin.php +++ b/bureau/class/m_admin.php @@ -522,7 +522,7 @@ class m_admin { } // Check if this domain exist on this admin account - if (!in_array($domain_name, $dom->enum_domains())) { + if ((!in_array($domain_name, $dom->enum_domains()))&&($domaine_name!=variable_get("hosting_tld"))) { $err->raise("admin", _("You don't seem to be allowed to delegate this domain")); $err->log("admin", "add_shared_domain", "domain not allowed"); return false;