fixed: if instant alias setting is empty the ability to create an instant

alias is not showinf up
This commit is contained in:
robvde 2012-09-30 19:50:24 +04:00
parent 3a4c995766
commit 3fbef19559
4 changed files with 6 additions and 31 deletions

View file

@ -108,8 +108,10 @@ namespace WebsitePanel.Portal
}
// instant alias
PackageSettings settings = ES.Services.Packages.GetPackageSettings(PanelSecurity.PackageId, PackageSettings.INSTANT_ALIAS);
bool instantAliasAllowed = !String.IsNullOrEmpty(domain.InstantAliasName);
bool instantAliasExists = (domain.InstantAliasId > 0);
bool instantAliasExists = (domain.InstantAliasId > 0) && (settings != null && !String.IsNullOrEmpty(settings["InstantAlias"]));
if (instantAliasAllowed
&& !domain.IsDomainPointer && !domain.IsInstantAlias)
{