From b92b0f04a8463959ec9060251ff3f7b5d61b7a66 Mon Sep 17 00:00:00 2001 From: Ahmed TAILOULOUTE Date: Fri, 12 Jun 2020 23:36:46 +0200 Subject: [PATCH] Update expressions.rst --- security/expressions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())' )); // ...