Skip to content

Commit 18047a7

Browse files
authored
Only filter post retrieval of entities for start nodes if working with entities that support start nodes. (#18287)
1 parent def7ebd commit 18047a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Umbraco.Web.BackOffice/Controllers/EntityController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,7 @@ public ActionResult<PagedResult<EntityBasic>> GetPagedChildren(
895895
// Filtering out child nodes after getting a paged result is an active choice here, even though the pagination might get off.
896896
// This has been the case with this functionality in Umbraco for a long time.
897897
.Where(entity => ignoreUserStartNodes ||
898+
(objectType == UmbracoObjectTypes.Document || objectType == UmbracoObjectTypes.Media) is false ||
898899
(ContentPermissions.IsInBranchOfStartNode(entity.Path, startNodeIds, startNodePaths, out var hasPathAccess) &&
899900
hasPathAccess))
900901
.Select(source =>

0 commit comments

Comments
 (0)