Revert "Fixes up UmbracoContextFactory to ensure it's not returning a disposed Umbraco context"

This reverts commit fcfb107653.
This commit is contained in:
Shannon
2019-06-20 17:58:40 +10:00
parent f6ac64f705
commit 5ea6ebcc66

View File

@@ -64,7 +64,7 @@ namespace Umbraco.Web
public UmbracoContextReference EnsureUmbracoContext(HttpContextBase httpContext = null)
{
var currentUmbracoContext = _umbracoContextAccessor.UmbracoContext;
if (currentUmbracoContext != null && !currentUmbracoContext.Disposed)
if (currentUmbracoContext != null)
return new UmbracoContextReference(currentUmbracoContext, false, _umbracoContextAccessor);