Improve performance of /tree/children REST resource

Description

Minimize calls to permission checks for pages that are not yet displayed, i.e. to know if a page has children that are visible in the current configuration, it is enough that we find one page that is visible (i.e. configuration and permissions are correct).

Currently all visible children are loaded.

Environment

None
Fixed

Assignee

Unassigned

Reporter

Sync User [K15t]

Labels

None

Participants

None

QA Status

None

Deployment

None

Documentation Status

None

UI Concept

None

External Votes

None

Components

Fix versions

Configure