page update

This commit is contained in:
2026-03-12 14:09:06 +01:00
parent 17a72af5f2
commit 0b9014dcbf
17 changed files with 634 additions and 196 deletions

View File

@@ -43,14 +43,6 @@ class AccessControl
return true;
}
// Check page/ prefix with slug lookup
if (str_starts_with($normalizedPath, 'page/')) {
$pageSlug = substr($normalizedPath, strlen('page/'));
if (in_array($pageSlug, $this->configuredPublicPaths, true)) {
return true;
}
}
// Check always-public prefixes
foreach (self::ALWAYS_PUBLIC_PREFIXES as $prefix) {
if (str_starts_with($normalizedPath, $prefix)) {