diff --git a/Site5/Master-v5.master.cs b/Site5/Master-v5.master.cs index 80810f20..ddb058ce 100644 --- a/Site5/Master-v5.master.cs +++ b/Site5/Master-v5.master.cs @@ -93,20 +93,12 @@ namespace Swarmops if (Request.Url.ToString().StartsWith ("http://") && !cloudFlareSsl) // only check client-side as many server sites de-SSL the connection before reaching the web server { - if (CurrentUser.Identity > 0) + if (!Request.Url.ToString().StartsWith ("http://dev.swarmops.com/") && + !Request.Url.ToString().StartsWith("http://dev-opentest.swarmops.com") && + !Request.Url.ToString().StartsWith("http://localhost:") && + !Request.Url.ToString().StartsWith ("http://swarmops-")) { - // if we're in identified mode (i.e. we're not operating as Open Ledgers or similar) - - if (!Request.Url.ToString().StartsWith ("http://dev.swarmops.com/") && - !Request.Url.ToString().StartsWith ("http://sandbox.swarmops.com") && - !Request.Url.ToString().StartsWith ("http://localhost:") && - !Request.Url.ToString().StartsWith ("http://swarmops-")) - { - Response.Redirect (Request.Url.ToString().Replace ("http:", "https:")); - - // Only force this if set to force it in database - // TODO: Make admin init task - } + Response.Redirect (Request.Url.ToString().Replace ("http:", "https:")); } }