Skip to content

Commit 5b032d0

Browse files
authored
Update authorization.rst
1 parent f379079 commit 5b032d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/security/authorization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ expressions have access to a number of
185185
$object = ...;
186186

187187
$expression = new Expression(
188-
'"ROLE_ADMIN" in roles or (not is_anonymous() and user.isSuperAdmin())'
188+
'"ROLE_ADMIN" in role_names or (not is_anonymous() and user.isSuperAdmin())'
189189
)
190190

191191
$vote = $expressionVoter->vote($token, $object, [$expression]);

0 commit comments

Comments
 (0)