U4-11246 When user belongs to groups and none of them have browse access and one or more have a custom start node applied a YSOD occurs

This commit is contained in:
Shannon
2018-04-19 16:20:18 +10:00
parent 8a0f32e980
commit 75fb070825

View File

@@ -96,6 +96,12 @@ namespace Umbraco.Web.Trees
return null;
var treeNode = GetSingleTreeNode(e, parentId, queryStrings);
if (treeNode == null)
{
//this means that the user has NO access to this node via permissions! They at least need to have browse permissions to see
//the node so we need to return null;
return null;
}
if (hasPathAccess == false)
{
treeNode.AdditionalData["noAccess"] = true;