8000 [error_pages] Removing misleading `is_granted` checker in code example by m4r3x · Pull Request #9029 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[error_pages] Removing misleading is_granted checker in code example #9029

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[error_pages] Removing misleading checker in code example
  • Loading branch information
Marek Szymeczko committed Jan 9, 2018
commit 3b344f6e9d6a46ba92c3bcdcfa3b25b0dfa10cdb
5 changes: 0 additions & 5 deletions controller/error_pages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,6 @@ To override the 404 error template for HTML pages, create a new

{% block body %}
<h1>Page not found</h1>

{% if is_granted('IS_AUTHENTICATED_FULLY') %}
{# ... #}
{% endif %}

<p>
The requested page couldn't be located. Checkout for any URL
misspelling or <a href="{{ path('homepage') }}">return to the homepage</a>.
Expand Down
0