Fixed wsp-10103 WSP - NO DNS Server - Customer Subdomain

This commit is contained in:
robvde 2013-01-23 14:14:32 +04:00
parent 7d52452736
commit 73cd732e6d

View file

@ -64,11 +64,14 @@ namespace WebsitePanel.Portal
ShowErrorMessage("DOMAIN_GET_DOMAIN", ex);
}
if (PanelSecurity.LoggedUser.Role == UserRole.User)
DomainType type = GetDomainType(Request["DomainType"]);
if ((PanelSecurity.LoggedUser.Role == UserRole.User) & (type != DomainType.SubDomain))
{
if (!PackagesHelper.CheckGroupQuotaEnabled(PanelSecurity.PackageId, ResourceGroups.Dns, Quotas.DNS_EDITOR))
this.DisableControls = true;
}
}
private void BindControls()