Drupal core update.
This commit is contained in:
@@ -5,7 +5,8 @@ namespace Drupal\nodepath_access\EventSubscriber;
|
||||
use Symfony\Component\HttpKernel\KernelEvents;
|
||||
use Symfony\Component\HttpKernel\Event\RequestEvent;
|
||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
|
||||
|
||||
|
||||
/**
|
||||
* Class EntityTypeSubscriber.
|
||||
@@ -38,7 +39,7 @@ class KernelRequestNodePathCheck implements EventSubscriberInterface {
|
||||
$current_request = \Drupal::requestStack()->getCurrentRequest();
|
||||
$path = \Drupal::request()->getRequestUri();
|
||||
if (str_contains($path, '/node/')) {
|
||||
return new NotFoundHttpException();
|
||||
/* throw new AccessDeniedHttpException(); */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user