Merge pull request #2629 from umbraco/temp-U4-11339

Fixes - User permissions does not work in listview in 7.10.4
This commit is contained in:
Sebastiaan Janssen
2018-06-20 15:39:56 +02:00
committed by GitHub
2 changed files with 36 additions and 4 deletions

View File

@@ -68,16 +68,17 @@ namespace Umbraco.Web.Trees
var allowedUserOptions = GetAllowedUserMenuItemsForNode(e);
if (CanUserAccessNode(e, allowedUserOptions))
{
//Special check to see if it ia a container, if so then we'll hide children.
var isContainer = e.IsContainer(); // && (queryStrings.Get("isDialog") != "true");
var hasChildren = ShouldRenderChildrenOfContainer(e);
var node = CreateTreeNode(
entity,
Constants.ObjectTypes.DocumentGuid,
parentId,
queryStrings,
entity.HasChildren && (isContainer == false));
hasChildren);
node.AdditionalData.Add("contentType", entity.ContentTypeAlias);