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

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