From 2f1336e79fe4b7802010eff72b17d6ec6ca82104 Mon Sep 17 00:00:00 2001 From: Lynn Date: Mon, 25 Nov 2019 15:08:41 +0100 Subject: [PATCH] has_roles should be is_granted in security upgrade file --- src/Symfony/Component/Security/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Security/CHANGELOG.md b/src/Symfony/Component/Security/CHANGELOG.md index d5c28dc67a..c87d4a2d06 100644 --- a/src/Symfony/Component/Security/CHANGELOG.md +++ b/src/Symfony/Component/Security/CHANGELOG.md @@ -15,7 +15,7 @@ CHANGELOG **After** ```php - if ($this->authorizationChecker->isGranted(new Expression("has_role('ROLE_USER') or has_role('ROLE_ADMIN')"))) {} + if ($this->authorizationChecker->isGranted(new Expression("is_granted('ROLE_USER') or is_granted('ROLE_ADMIN')"))) {} // or: if ($this->authorizationChecker->isGranted('ROLE_USER') || $this->authorizationChecker->isGranted('ROLE_ADMIN')