bug fix: sub admin were proposed to install hosting_tld for new user, but the domain creation silently failed

This commit is contained in:
Remi 2016-07-07 12:59:56 +02:00
parent 5d3dfb2a11
commit 1b73dff3a5
1 changed files with 1 additions and 1 deletions

View File

@ -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;