Skip to content

Commit 2c4deb3

Browse files
committed
minor #13833 Update expressions.rst (atailouloute)
This PR was merged into the 5.0 branch. Discussion ---------- Update expressions.rst Commits ------- b92b0f0 Update expressions.rst
2 parents e9af459 + b92b0f0 commit 2c4deb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/expressions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ accepts an :class:`Symfony\\Component\\ExpressionLanguage\\Expression` object::
1818
public function index()
1919
{
2020
$this->denyAccessUnlessGranted(new Expression(
21-
'"ROLE_ADMIN" in roles or (not is_anonymous() and user.isSuperAdmin())'
21+
'"ROLE_ADMIN" in role_names or (not is_anonymous() and user.isSuperAdmin())'
2222
));
2323

2424
// ...

0 commit comments

Comments
 (0)