We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f379079 commit 5b032d0Copy full SHA for 5b032d0
components/security/authorization.rst
@@ -185,7 +185,7 @@ expressions have access to a number of
185
$object = ...;
186
187
$expression = new Expression(
188
- '"ROLE_ADMIN" in roles or (not is_anonymous() and user.isSuperAdmin())'
+ '"ROLE_ADMIN" in role_names or (not is_anonymous() and user.isSuperAdmin())'
189
)
190
191
$vote = $expressionVoter->vote($token, $object, [$expression]);
0 commit comments