]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Handler/AccessDeniedHandler.php
Rename body template in base
[airbundle] / Handler / AccessDeniedHandler.php
index 13727c9628c2d3e85163261c189d34bf7e691b81..961b5260e7d1e856868b03bf9abc285a10a24edd 100644 (file)
@@ -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();
                }