wsp-10204 Fixed: User is unable to create domains when no DNS provider is part

of the plan
This commit is contained in:
robvde 2013-10-27 15:21:58 +04:00
parent 28e0934c9c
commit 64d4b1ba30

View file

@ -56,22 +56,21 @@ namespace WebsitePanel.Portal
txtHostName.Text = "";
}
DomainType type = GetDomainType(Request["DomainType"]);
if ((PanelSecurity.LoggedUser.Role == UserRole.User) & (type != DomainType.SubDomain))
{
if (cntx.Groups.ContainsKey(ResourceGroups.Dns))
{
if (!PackagesHelper.CheckGroupQuotaEnabled(PanelSecurity.PackageId, ResourceGroups.Dns, Quotas.DNS_EDITOR))
this.DisableControls = true;
}
}
}
catch (Exception ex)
{
ShowErrorMessage("DOMAIN_GET_DOMAIN", ex);
}
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()