Removes the AllStartNodeIds properties from IUser, updates all unit tests to work with the new methods, ensures the calculation is cached to the user object

This commit is contained in:
Shannon
2017-07-19 16:15:16 +10:00
parent 8c3f6dfc25
commit 38cd3dcf94
20 changed files with 364 additions and 157 deletions

View File

@@ -65,7 +65,7 @@ namespace Umbraco.Web.Trees
private int[] _userStartNodes;
protected override int[] UserStartNodes
{
get { return _userStartNodes ?? (_userStartNodes = Security.CurrentUser.AllStartContentIds); }
get { return _userStartNodes ?? (_userStartNodes = Security.CurrentUser.CalculateContentStartNodeIds(Services.EntityService)); }
}
/// <summary>