Disabling force-SSL when running Open Ledgers

This commit is contained in:
Rick Falkvinge
2015-03-04 22:20:24 +01:00
parent 8d561e046f
commit 7e745c1299
+1 -1
View File
@@ -90,7 +90,7 @@ namespace Swarmops
// Rewrite if applicable
if (Request.Url.ToString().StartsWith ("http://") && !cloudFlareSsl)
if (Request.Url.ToString().StartsWith ("http://") && !cloudFlareSsl && CurrentUser.Identity > 0)
// only check client-side as many server sites de-SSL the connection before reaching the web server
{
if (!Request.Url.ToString().StartsWith ("http://dev.swarmops.com/") &&