We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 40f7fdf + b2cd345 commit 1b25c86Copy full SHA for 1b25c86
cookbook/controller/error_pages.rst
@@ -56,7 +56,7 @@ end-user, create a new template located at
56
by your error pages), because the router runs before the firewall. If
57
the router throws an exception (for instance, when the route does not
58
match), then using ``is_granted`` will throw a further exception. You
59
- can use ``is_granted`` safely by saying ``{% if app.security and is_granted('...') %}``.
+ can use ``is_granted`` safely by saying ``{% if app.user is not null and is_granted('...') %}``.
60
61
.. tip::
62
0 commit comments