From: Raphaƫl Gertz Date: Thu, 29 Feb 2024 13:54:33 +0000 (+0100) Subject: Use checker for isGranted X-Git-Tag: 0.3.0~37 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/15edeaf613270f3abdcbfc3dec9cac36b0d09a59?hp=0851c2247e04f3d31deac35f8a89b144cba1a7bc Use checker for isGranted --- 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(); }