Skip to content

Commit 8c74863

Browse files
committed
minor #9029 [error_pages] Removing misleading is_granted checker in code example (Marek Szymeczko)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #9029). Discussion ---------- [error_pages] Removing misleading `is_granted` checker in code example Docs contain misleading code section that leaves you wondering for a while ;) This commit clearly states that it's no longer possible: https://github.com/symfony/symfony/pull/5325/files Commits ------- 64a996b [error_pages] Removing misleading checker in code example
2 parents 37d87a0 + 64a996b commit 8c74863

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

controller/error_pages.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@ To override the 404 error template for HTML pages, create a new
9999
{% block body %}
100100
<h1>Page not found</h1>
101101

102-
{# example security usage, see below #}
103-
{% if app.user and is_granted('IS_AUTHENTICATED_FULLY') %}
104-
{# ... #}
105-
{% endif %}
106-
107102
<p>
108103
The requested page couldn't be located. Checkout for any URL
109104
misspelling or <a href="{{ path('homepage') }}">return to the homepage</a>.

0 commit comments

Comments
 (0)