File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -394,12 +394,12 @@ logic you want::
394
394
}
395
395
396
396
// you can still check for ROLE_ALLOWED_TO_SWITCH
397
- if ($this->accessDecisionManager->isGranted ($token, ['ROLE_ALLOWED_TO_SWITCH'])) {
397
+ if ($this->accessDecisionManager->decide ($token, ['ROLE_ALLOWED_TO_SWITCH'])) {
398
398
return true;
399
399
}
400
400
401
401
// check for any roles you want
402
- if ($this->accessDecisionManager->isGranted ($token, ['ROLE_TECH_SUPPORT'])) {
402
+ if ($this->accessDecisionManager->decide ($token, ['ROLE_TECH_SUPPORT'])) {
403
403
return true;
404
404
}
405
405
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ with ``ROLE_SUPER_ADMIN``::
261
261
// ...
262
262
263
263
// ROLE_SUPER_ADMIN can do anything! The power!
264
- if ($this->accessDecisionManager->isGranted ($token, ['ROLE_SUPER_ADMIN'])) {
264
+ if ($this->accessDecisionManager->decide ($token, ['ROLE_SUPER_ADMIN'])) {
265
265
return true;
266
266
}
267
267
You can’t perform that action at this time.
0 commit comments