X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/1a35f270bc2cd8cee255d9553699b85145f04f0b..eb1f263248166f36f5eb7dc17e39721e80b3e7c2:/Handler/AccessDeniedHandler.php?ds=sidebyside diff --git a/Handler/AccessDeniedHandler.php b/Handler/AccessDeniedHandler.php index 13727c9..961b526 100644 --- a/Handler/AccessDeniedHandler.php +++ b/Handler/AccessDeniedHandler.php @@ -35,7 +35,7 @@ class AccessDeniedHandler extends AbstractController implements AccessDeniedHand $this->context['message'] = $exception->getMessage(); //With admin - if ($this->isGranted('ROLE_ADMIN')) { + if ($this->checker->isGranted('ROLE_ADMIN')) { //Add trace for admin $this->context['trace'] = $exception->getTraceAsString(); }