#111330Check page access along the cached page ancestry
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 deprecatedgetPagePermsClausehook 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
-
Gerrit Code Review pushed patch set 1 for main to change 97323 status
NewUnder Review <span data-processor="relativetime" data-value="2026-11-03T14:43:25+00:00" > 11/03/26, 14:43 </span> -
Gerrit Code Review pushed patch set 2 for main to change 97323 <span data-processor="relativetime" data-value="2026-11-09T10:13:07+00:00" > 11/09/26, 10:13 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 97323 <span data-processor="relativetime" data-value="2026-11-10T20:26:16+00:00" > 11/10/26, 20:26 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 97323 <span data-processor="relativetime" data-value="2026-11-13T14:31:25+00:00" > 11/13/26, 14:31 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 97323 <span data-processor="relativetime" data-value="2026-11-13T19:02:43+00:00" > 11/13/26, 19:02 </span>
-
Gerrit Code Review pushed patch set 6 for main to change 97323 <span data-processor="relativetime" data-value="2026-11-13T20:59:45+00:00" > 11/13/26, 20:59 </span>
-
Gerrit Code Review pushed patch set 7 for main to change 97323 <span data-processor="relativetime" data-value="2026-11-17T15:48:16+00:00" > 11/17/26, 15:48 </span>
-
Gerrit Code Review pushed patch set 8 for main to change 97323 <span data-processor="relativetime" data-value="2026-11-17T18:50:54+00:00" > 11/17/26, 18:50 </span>
-
Gerrit Code Review pushed patch set 9 for main to change 97323 <span data-processor="relativetime" data-value="2026-11-18T08:04:20+00:00" > 11/18/26, 08:04 </span>
-
Gerrit Code Review pushed patch set 10 for main to change 97323 <span data-processor="relativetime" data-value="2026-11-18T10:35:55+00:00" > 11/18/26, 10:35 </span>
-
Gerrit Code Review pushed patch set 11 for main to change 97323 <span data-processor="relativetime" data-value="2026-11-18T19:05:19+00:00" > 11/18/26, 19:05 </span>
-
Gerrit Code Review pushed patch set 12 for main to change 97323 <span data-processor="relativetime" data-value="2026-11-18T19:16:29+00:00" > 11/18/26, 19:16 </span>