Fix outdated allowed controller
authorMarcel Werk <burntime@woltlab.com>
Wed, 20 Mar 2024 16:14:19 +0000 (17:14 +0100)
committerMarcel Werk <burntime@woltlab.com>
Wed, 20 Mar 2024 16:14:19 +0000 (17:14 +0100)
wcfsetup/install/files/lib/page/AbstractPage.class.php

index fce3d8dfe13752bb47383bb4af253d02091b8a71..306c4caf90de3990a8c67e0db5fa0e7106171a6d 100644 (file)
@@ -4,7 +4,6 @@ namespace wcf\page;
 
 use Psr\Http\Message\ResponseInterface;
 use wcf\data\page\PageCache;
-use wcf\form\DisclaimerForm;
 use wcf\form\EmailActivationForm;
 use wcf\form\EmailNewActivationCodeForm;
 use wcf\form\LoginForm;
@@ -13,6 +12,7 @@ use wcf\form\NewPasswordForm;
 use wcf\form\RegisterActivationForm;
 use wcf\form\RegisterForm;
 use wcf\form\RegisterNewActivationCodeForm;
+use wcf\page\DisclaimerPage;
 use wcf\system\event\EventHandler;
 use wcf\system\exception\IllegalLinkException;
 use wcf\system\exception\PermissionDeniedException;
@@ -405,7 +405,7 @@ abstract class AbstractPage implements IPage
     protected function forceLogin()
     {
         $allowedControllers = [
-            DisclaimerForm::class,
+            DisclaimerPage::class,
             EmailActivationForm::class,
             EmailNewActivationCodeForm::class,
             LoginForm::class,