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 @@ -337,12 +337,12 @@ logic you want::
337
337
}
338
338
339
339
// you can still check for ROLE_ALLOWED_TO_SWITCH
340
- if ($this->accessDecisionManager->isGranted ($token, ['ROLE_ALLOWED_TO_SWITCH'])) {
340
+ if ($this->accessDecisionManager->decide ($token, ['ROLE_ALLOWED_TO_SWITCH'])) {
341
341
return true;
342
342
}
343
343
344
344
// check for any roles you want
345
- if ($this->accessDecisionManager->isGranted ($token, ['ROLE_TECH_SUPPORT'])) {
345
+ if ($this->accessDecisionManager->decide ($token, ['ROLE_TECH_SUPPORT'])) {
346
346
return true;
347
347
}
348
348
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ with ``ROLE_SUPER_ADMIN``::
248
248
// ...
249
249
250
250
// ROLE_SUPER_ADMIN can do anything! The power!
251
- if ($this->accessDecisionManager->isGranted ($token, ['ROLE_SUPER_ADMIN'])) {
251
+ if ($this->accessDecisionManager->decide ($token, ['ROLE_SUPER_ADMIN'])) {
252
252
return true;
253
253
}
254
254
You can’t perform that action at this time.
0 commit comments