Fixes: U4-5460 User with start content set won't see the selected node.
This commit is contained in:
committed by
Sebastiaan Janssen
parent
340328aeba
commit
414dbe45a6
@@ -64,24 +64,7 @@ namespace Umbraco.Web.Trees
|
||||
{
|
||||
get { return Security.CurrentUser.StartContentId; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the tree nodes for the given id
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="queryStrings"></param>
|
||||
/// <returns></returns>
|
||||
/// <remarks>
|
||||
/// If the content item is a container node then we will not return anything
|
||||
/// </remarks>
|
||||
protected override TreeNodeCollection PerformGetTreeNodes(string id, FormDataCollection queryStrings)
|
||||
{
|
||||
var nodes = new TreeNodeCollection();
|
||||
var entities = GetChildEntities(id);
|
||||
nodes.AddRange(entities.Select(entity => GetSingleTreeNode(entity, id, queryStrings)).Where(node => node != null));
|
||||
return nodes;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Creates a tree node for a content item based on an UmbracoEntity
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user