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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user