From a9ad0ae8eb4f6bd6250b859646159e6cb775c68c Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 2 Nov 2015 23:34:33 +0100 Subject: [PATCH] removed the debug check --- src/Umbraco.Web/Models/Mapping/ContentModelMapper.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Web/Models/Mapping/ContentModelMapper.cs b/src/Umbraco.Web/Models/Mapping/ContentModelMapper.cs index a67fb5cb99..d920d4509c 100644 --- a/src/Umbraco.Web/Models/Mapping/ContentModelMapper.cs +++ b/src/Umbraco.Web/Models/Mapping/ContentModelMapper.cs @@ -202,10 +202,9 @@ namespace Umbraco.Web.Models.Mapping genericProperties => { //TODO: This would be much nicer with the IUmbracoContextAccessor so we don't use singletons - //If this is a web request and debugging is enabled and there's a user signed in and the - // user has access tot he settings section, we will - if (HttpContext.Current != null && HttpContext.Current.IsDebuggingEnabled - && UmbracoContext.Current != null && UmbracoContext.Current.Security.CurrentUser != null + //If this is a web request and there's a user signed in and the + // user has access to the settings section, we will + if (HttpContext.Current != null && UmbracoContext.Current != null && UmbracoContext.Current.Security.CurrentUser != null && UmbracoContext.Current.Security.CurrentUser.AllowedSections.Any(x => x.Equals(Constants.Applications.Settings))) { var currentDocumentType = contentTypeService.GetContentType(display.ContentTypeAlias);