Skip to content
Snippets Groups Projects

Resolve #3495439 "Round2"

Merged Stephen Mustgrave requested to merge issue/restrict_ip-3495439:3495439-round2 into 5.0.x
Files
7
@@ -27,7 +27,7 @@ class PageController extends ControllerBase implements PageControllerInterface {
/**
* {@inheritdoc}
*/
public function accessDeniedPage(): RedirectResponse {
public function accessDeniedPage(): RedirectResponse|array {
if (!isset($_SESSION['restrict_ip']) || !$_SESSION['restrict_ip']) {
return new RedirectResponse(Url::fromRoute('<front>')->toString());
}
Loading