Cleans up how the content path permissions are checked, integrates the bulk publishing into the controller, adds security check to ensure the user can publish the whole branch, updates the UI messaging so they are grouped by publish statuses and deals with multiple publish status (i.e. in bulk), fixes some content tree issues
This commit is contained in:
@@ -232,7 +232,9 @@ namespace Umbraco.Web.Trees
|
||||
protected bool HasPathAccess(IUmbracoEntity entity, FormDataCollection queryStrings)
|
||||
{
|
||||
if (entity == null) return false;
|
||||
return Security.CurrentUser.HasPathAccess(entity, Services.EntityService, RecycleBinId);
|
||||
return RecycleBinId == Constants.System.RecycleBinContent
|
||||
? Security.CurrentUser.HasContentPathAccess(entity, Services.EntityService)
|
||||
: Security.CurrentUser.HasMediaPathAccess(entity, Services.EntityService);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user