Add support for GUIDs in media and content pickers

This commit is contained in:
Niels Hartvig
2017-01-09 14:45:40 +01:00
parent 6a374cbfa6
commit 1a9f336a59
6 changed files with 137 additions and 21 deletions

View File

@@ -202,11 +202,13 @@ namespace Umbraco.Web.Trees
/// <returns></returns>
protected override bool HasPathAccess(string id, FormDataCollection queryStrings)
{
var content = Services.ContentService.GetById(int.Parse(id));
if (content == null)
var entity = GetEntityFromId(id);
if (entity == null)
{
return false;
}
IContent content = Services.ContentService.GetById(entity.Id);
return Security.CurrentUser.HasPathAccess(content);
}