Filtering out properties

This commit is contained in:
Lars-Erik Aabech
2017-06-04 21:20:42 +02:00
parent ee577da48e
commit b55aa7c16d

View File

@@ -115,7 +115,12 @@ namespace Umbraco.Web.Editors
var content = Mapper.Map<IContent, ContentItemDisplay>(foundContent);
content.AllowedActions = new[] {'A'};
content.AllowedActions = new[] {'A'};
var excludeProps = new[] {"_umb_urls", "_umb_releasedate", "_umb_expiredate", "_umb_template"};
var propsTab = content.Tabs.Last();
propsTab.Properties = propsTab.Properties
.Where(p => excludeProps.Contains(p.Alias) == false);
return content;
}