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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user