fixed: if instant alias setting is empty the ability to create an instant
alias is not showinf up
This commit is contained in:
parent
3a4c995766
commit
3fbef19559
4 changed files with 6 additions and 31 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue