Commit d5435319 authored by Niklas Fiekas's avatar Niklas Fiekas
Browse files

Throw right exception in drupal_access_denied().

parent 989e2d3c
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.
Supports Markdown
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