wsp-10204 Fixed: User is unable to create domains when no DNS provider is part
of the plan
This commit is contained in:
parent
28e0934c9c
commit
64d4b1ba30
1 changed files with 9 additions and 10 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue