Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit484e9af

Browse files
xabbuhjaviereguiluz
authored andcommitted
adapt reference to no longer mention multi attribute support
1 parent25cd16f commit484e9af

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎reference/twig_reference.rst‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,13 @@ is_granted
144144
{{ is_granted(role, object = null, field = null) }}
145145
146146
``role``
147-
**type**: ``string``, ``string[]``
147+
**type**: ``string``
148148
``object`` *(optional)*
149149
**type**: ``object``
150150
``field`` *(optional)*
151151
**type**: ``string``
152152

153-
Returns ``true`` if the current user has the given role. If several roles are
154-
passed in an array, ``true`` is returned if the user has at least one of
155-
them.
153+
Returns ``true`` if the current user has the given role.
156154

157155
Optionally, an object can be passed to be used by the voter. More information
158156
can be found in:ref:`security-template`.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp