Skip to content

Commit

Permalink
Merge branch '2.6' into 2.7
Browse files Browse the repository at this point in the history
* 2.6:
  Backporting some stuff from 2.7, that I think must have gotten merged only there by accident
  • Loading branch information
weaverryan committed Mar 14, 2015
2 parents 5cae596 + 66831a6 commit 1fccbf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ You can easily deny access from inside a controller::
$this->denyAccessUnlessGranted('ROLE_ADMIN', null, 'Unable to access this page!');

// Old way :
// if (false === $this->get('security.context')->isGranted('ROLE_ADMIN')) {
// if (false === $this->get('security.authorization_checker')->isGranted('ROLE_ADMIN')) {
// throw $this->createAccessDeniedException('Unable to access this page!');
// }

Expand Down

0 comments on commit 1fccbf6

Please sign in to comment.