diff --git a/security/expressions.rst b/security/expressions.rst index 2013d6656d7..fefee9bac17 100644 --- a/security/expressions.rst +++ b/security/expressions.rst @@ -18,7 +18,7 @@ accepts an :class:`Symfony\\Component\\ExpressionLanguage\\Expression` object:: public function index() { $this->denyAccessUnlessGranted(new Expression( - '"ROLE_ADMIN" in roles or (not is_anonymous() and user.isSuperAdmin())' + '"ROLE_ADMIN" in role_names or (not is_anonymous() and user.isSuperAdmin())' )); // ...