Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
d5435319
Commit
d5435319
authored
Apr 02, 2012
by
Niklas Fiekas
Browse files
Throw right exception in drupal_access_denied().
parent
989e2d3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/includes/common.inc
View file @
d5435319
<?php
use
Symfony\Component\Http
Foundation\File
\Exception\AccessDeniedException
;
use
Symfony\Component\Http
Kernel
\Exception\AccessDenied
Http
Exception
;
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
AccessDenied
Http
Exception
();
// @todo Remove this line.
//drupal_deliver_page(MENU_ACCESS_DENIED);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment