Skip to content

Commit 929a152

Browse files
committed
Merge branch 'security_typo' of https://github.com/hhamon/symfony-docs into hhamon-security_typo
2 parents aa88d04 + 9e2d93c commit 929a152

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

book/security/authentication.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,11 @@ configuration example that shows how to override them all:
443443
),
444444
));
445445
446+
.. note::
447+
448+
Unlike the ``login_path`` URL, the ``check_path`` URL must be located under
449+
a secured pattern in order to be handled by the firewall.
450+
446451
.. index::
447452
single: Security; X.509 certificates
448453

book/security/authorization.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,17 +153,17 @@ syntax:
153153

154154
.. configuration-block::
155155

156-
.. code-block:: php
156+
.. code-block:: jinja
157157
158-
<?php if ($view['security']->isGranted('ROLE_ADMIN')): ?>
158+
{% if is_granted("ROLE_ADMIN") %}
159159
<a href="...">Delete</a>
160-
<?php endif ?>
160+
{% endif %}
161161
162-
.. code-block:: jinja
162+
.. code-block:: php
163163
164-
{% if has_role("ROLE_ADMIN") %}
164+
<?php if ($view['security']->isGranted('ROLE_ADMIN')): ?>
165165
<a href="...">Delete</a>
166-
{% endif %}
166+
<?php endif ?>
167167
168168
.. note::
169169

0 commit comments

Comments
 (0)