Skip to content

Commit 06cfddc

Browse files
committed
Don't call checkPermissions() when building the sitemap for simple pages
Calling `checkPermissions()` outside the page itself is not intended and may cause errors if `readParameters()` has not been called first. ref https://www.woltlab.com/community/thread/317075-sitemaps-k%C3%B6nnen-in-php-8-4-nicht-mehr-aktualisiert-werden/
1 parent 14305fc commit 06cfddc

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

wcfsetup/install/files/lib/system/sitemap/object/SimplePageSitemapObject.class.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ public function canView(DatabaseObject $object)
6969
try {
7070
// check modules
7171
$page->checkModules();
72-
73-
// check permission
74-
$page->checkPermissions();
7572
} catch (PermissionDeniedException $e) {
7673
return false;
7774
} catch (IllegalLinkException $e) {

0 commit comments

Comments
 (0)