Skip to content

Commit 8d9e975

Browse files
committed
fixed typo
1 parent 79ecd22 commit 8d9e975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/security/authorization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ syntax:
181181

182182
.. code-block:: php
183183
184-
<?php if ($view['user']->hasRole('ROLE_ADMIN')): ?>
184+
<?php if ($view['security']->vote('ROLE_ADMIN')): ?>
185185
<a href="...">Delete</a>
186186
<?php endif ?>
187187

0 commit comments

Comments
 (0)