public virtual PageSettings GetDefaultSettings() { var pageSettings = new PageSettings { Templates = _templateController.GetTemplates(), Permissions = GetPermissionsData(0) }; pageSettings.TemplateId = _templateController.GetDefaultTemplateId(pageSettings.Templates); return(pageSettings); }
public virtual PageSettings GetDefaultSettings() { var pageSettings = new PageSettings { Templates = _templateController.GetTemplates(), Permissions = GetPermissionsData(0) }; pageSettings.TemplateId = _templateController.GetDefaultTemplateId(pageSettings.Templates); var portalSettings = PortalController.Instance.GetCurrentPortalSettings(); if (PortalController.GetPortalSettingAsBoolean("SSLEnabled", portalSettings.PortalId, false) && PortalController.GetPortalSettingAsBoolean("SSLEnforced", portalSettings.PortalId, false)) { pageSettings.IsSecure = true; } return(pageSettings); }