8000
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 395558c commit 2f1336eCopy full SHA for 2f1336e
src/Symfony/Component/Security/CHANGELOG.md
@@ -15,7 +15,7 @@ CHANGELOG
15
16
**After**
17
```php
18
- 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')"))) {}
19
// or:
20
if ($this->authorizationChecker->isGranted('ROLE_USER')
21
|| $this->authorizationChecker->isGranted('ROLE_ADMIN')
0 commit comments