Fixes sni-related bug where customers and resellers are not allowed to see website properties.

This commit is contained in:
Olov Karlsson 2014-10-31 20:02:19 +01:00
parent 94d79fefd4
commit 750587f38d
4 changed files with 16 additions and 9 deletions

View file

@ -278,15 +278,7 @@ namespace WebsitePanel.Portal
webSitesHeliconZooControl.BindWebItem(site);
// If SNI is enabled on the server, we do allow for SSL even if site not has dedicated Ip
var sniEnabled = false;
var serverSettings = ES.Services.Servers.GetServiceSettings(site.ServiceId);
var sniEnabledItem = serverSettings.FirstOrDefault(s => s.StartsWith("sslusesni"));
if (sniEnabledItem != null)
{
sniEnabled = Utils.ParseBool(sniEnabledItem.Split('=')[1], false);
}
if (site.IsDedicatedIP || sniEnabled)
if (site.IsDedicatedIP || site.SniEnabled)
{
AllowSsl = true;
WebsitesSSLControl.Visible = true;