Issue Task Under Review

#111330Check page access along the cached page ancestry

Benni Mack 11/03/26, 11:30 updated 11/18/26, 19:16

Description

Most backend modules call BackendUtility::readPageAccess() with the show permission clause of the user, getPagePermsClause(Permission::PAGE_SHOW). As a clause is given, BackendUserAuthentication::isInWebMount() walks the page tree with it, one query per page level, instead of using the page ancestry resolved with one query since #111307. getRecordPath() then walks the page tree a second time for the record path, as the runtime cache of BEgetRootLine() differs in the prefix of the clause.

Proposal

  • isInWebMount() treats the show permission clause of the user like no clause and checks the page along its cached ancestry.
  • readPageAccess() takes the record path from the same ancestry, up to the first page not shown to the user.
  • Other clauses, listeners of the ModifyPagePermissionClauseEvent (#111328) and the deprecated getPagePermsClause hook keep the walk with the clause.

For a page on level seven, readPageAccess() then needs the record query and one ancestry query instead of two walks of the page tree.

Reviews 1

History 012