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.
1 parent 82b0009 commit b2cd345Copy full SHA for b2cd345
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.user 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