We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 975b050 commit 206e4aeCopy full SHA for 206e4ae
src/Controller/Component/LegacyAuthComponent.php
@@ -239,10 +239,13 @@ public function initialize(array $config): void {
239
* Callback for Controller.startup event.
240
*
241
* @param \Cake\Event\EventInterface $event Event instance.
242
- * @return \Cake\Http\Response|null
+ * @return void
243
*/
244
- public function startup(EventInterface $event): ?Response {
245
- return $this->authCheck($event);
+ public function startup(EventInterface $event): void {
+ $check = $this->authCheck($event);
246
+ if ($check !== null) {
247
+ $event->setResult($check);
248
+ }
249
}
250
251
/**
0 commit comments