From 73cd732e6d26cc42ac82f7e8342bcdbeb0a410de Mon Sep 17 00:00:00 2001 From: robvde Date: Wed, 23 Jan 2013 14:14:32 +0400 Subject: [PATCH] Fixed wsp-10103 WSP - NO DNS Server - Customer Subdomain --- .../DesktopModules/WebsitePanel/DomainsAddDomain.ascx.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/DomainsAddDomain.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/DomainsAddDomain.ascx.cs index f9761a23..5dd7a02b 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/DomainsAddDomain.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/DomainsAddDomain.ascx.cs @@ -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()