Fixes: U4-2905 Refresh node at tree root (i.e. content/media) doesn't work

This commit is contained in:
Shannon
2013-09-26 14:28:18 +10:00
parent ac755d7a22
commit c9fd168cbd
4 changed files with 42 additions and 26 deletions

View File

@@ -29,10 +29,10 @@ namespace Umbraco.Web.Trees
TreeNode node;
//if the user's start node is not default, then return their start node as the root node.
if (UmbracoUser.StartNodeId != Constants.System.Root)
if (Security.CurrentUser.StartContentId != Constants.System.Root)
{
var currApp = queryStrings.GetValue<string>(TreeQueryStringParameters.Application);
var userRoot = Services.EntityService.Get(UmbracoUser.StartNodeId, UmbracoObjectTypes.Document);
var userRoot = Services.EntityService.Get(Security.CurrentUser.StartContentId, UmbracoObjectTypes.Document);
if (userRoot == null)
{
throw new HttpResponseException(HttpStatusCode.NotFound);