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 5c0f8fb commit 52316acCopy full SHA for 52316ac
cookbook/controller/error_pages.rst
@@ -136,7 +136,7 @@ The cause of this problem is that routing is done before security. If a 404 erro
136
occurs, the security layer isn't loaded and thus, the ``is_granted()`` function
137
is undefined. The solution is to add the following check before using this function:
138
139
-.. code-block:: twig
+.. code-block:: jinja
140
141
{% if app.user and is_granted('...') %}
142
{# ... #}
0 commit comments