Commit d5435319 authored by Niklas Fiekas's avatar Niklas Fiekas

Throw right exception in drupal_access_denied().

parent 989e2d3c
<?php
use Symfony\Component\HttpFoundation\File\Exception\AccessDeniedException;
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Drupal\Core\Database\Database;
......@@ -731,7 +731,7 @@ function drupal_not_found() {
*/
function drupal_access_denied() {
throw new AccessDeniedException();
throw new AccessDeniedHttpException();
// @todo Remove this line.
//drupal_deliver_page(MENU_ACCESS_DENIED);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment