Merge branch 'patch-v7' into dev-v7

This commit is contained in:
Sebastiaan Janssen
2018-04-19 09:55:16 +02:00
2 changed files with 9 additions and 2 deletions

View File

@@ -76,8 +76,9 @@ namespace Umbraco.Core.Services
_locker.EnterWriteLock();
foreach (var pair in pairs)
{
_id2Key.Add(pair.id, new TypedId<Guid>(pair.key, umbracoObjectType));
_key2Id.Add(pair.key, new TypedId<int>(pair.id, umbracoObjectType));
_id2Key[pair.id] = new TypedId<Guid>(pair.key, umbracoObjectType);
_key2Id[pair.key] = new TypedId<int>(pair.id, umbracoObjectType);
}
}
finally

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;