File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -443,6 +443,11 @@ configuration example that shows how to override them all:
443
443
),
444
444
));
445
445
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
+
446
451
.. index ::
447
452
single: Security; X.509 certificates
448
453
Original file line number Diff line number Diff line change @@ -153,17 +153,17 @@ syntax:
153
153
154
154
.. configuration-block ::
155
155
156
- .. code-block :: php
156
+ .. code-block :: jinja
157
157
158
- <?php if ($view['security']->isGranted(' ROLE_ADMIN')): ?>
158
+ {% if is_granted(" ROLE_ADMIN") %}
159
159
<a href="...">Delete</a>
160
- <?php endif ?>
160
+ {% endif %}
161
161
162
- .. code-block :: jinja
162
+ .. code-block :: php
163
163
164
- {% if has_role(" ROLE_ADMIN") %}
164
+ <?php if ($view['security']->isGranted(' ROLE_ADMIN')): ?>
165
165
<a href =" ..." >Delete</a >
166
- {% endif %}
166
+ <?php endif ?>
167
167
168
168
.. note ::
169
169
You can’t perform that action at this time.
0 commit comments