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 79d3968 commit b92b0f0Copy full SHA for b92b0f0
security/expressions.rst
@@ -18,7 +18,7 @@ accepts an :class:`Symfony\\Component\\ExpressionLanguage\\Expression` object::
18
public function index()
19
{
20
$this->denyAccessUnlessGranted(new Expression(
21
- '"ROLE_ADMIN" in roles or (not is_anonymous() and user.isSuperAdmin())'
+ '"ROLE_ADMIN" in role_names or (not is_anonymous() and user.isSuperAdmin())'
22
));
23
24
// ...
0 commit comments