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 @@ -402,12 +402,12 @@ logic you want::
402
402
}
403
403
404
404
// you can still check for ROLE_ALLOWED_TO_SWITCH
405
- if ($this->accessDecisionManager->isGranted ($token, ['ROLE_ALLOWED_TO_SWITCH'])) {
405
+ if ($this->accessDecisionManager->decide ($token, ['ROLE_ALLOWED_TO_SWITCH'])) {
406
406
return true;
407
407
}
408
408
409
409
// check for any roles you want
410
- if ($this->accessDecisionManager->isGranted ($token, ['ROLE_TECH_SUPPORT'])) {
410
+ if ($this->accessDecisionManager->decide ($token, ['ROLE_TECH_SUPPORT'])) {
411
411
return true;
412
412
}
413
413
Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ with ``ROLE_SUPER_ADMIN``::
265
265
// ...
266
266
267
267
// ROLE_SUPER_ADMIN can do anything! The power!
268
- if ($this->accessDecisionManager->isGranted ($token, ['ROLE_SUPER_ADMIN'])) {
268
+ if ($this->accessDecisionManager->decide ($token, ['ROLE_SUPER_ADMIN'])) {
269
269
return true;
270
270
}
271
271
You can’t perform that action at this time.
0 commit comments