Skip to content

Commit 1fccbf6

Browse files
committed
Merge branch '2.6' into 2.7
* 2.6: Backporting some stuff from 2.7, that I think must have gotten merged only there by accident
2 parents 5cae596 + 66831a6 commit 1fccbf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/security.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ You can easily deny access from inside a controller::
817817
$this->denyAccessUnlessGranted('ROLE_ADMIN', null, 'Unable to access this page!');
818818

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

0 commit comments

Comments
 (0)