Fixes: U4-4108 The backoffice should not be accessible when the app is not configured, it should redirect to the installer and U4-4106 Set the new membership providers to be shipped as default.

This commit is contained in:
Shannon
2014-01-22 15:26:45 +11:00
parent 9bd8d729fa
commit 2956aee4e3
2 changed files with 10 additions and 3 deletions

View File

@@ -81,7 +81,14 @@ namespace Umbraco.Web
if (UmbracoContext.Current.RoutingContext == null)
throw new InvalidOperationException("The UmbracoContext.RoutingContext has not been assigned, ProcessRequest cannot proceed unless there is a RoutingContext assigned to the UmbracoContext");
var umbracoContext = UmbracoContext.Current;
var umbracoContext = UmbracoContext.Current;
//if it's a back office request then we need to ensure we're configured - otherwise redirect to installer
if (httpContext.Request.Url.IsBackOfficeRequest(HttpRuntime.AppDomainAppVirtualPath)
&& EnsureIsConfigured(httpContext, umbracoContext.OriginalRequestUrl) == false)
{
return;
}
// do not process but remap to handler if it is a base rest request
if (BaseRest.BaseRestHandler.IsBaseRestRequest(umbracoContext.OriginalRequestUrl))