File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -394,12 +394,12 @@ logic you want::
394394 }
395395
396396 // 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'])) {
398398 return true;
399399 }
400400
401401 // check for any roles you want
402- if ($this->accessDecisionManager->isGranted ($token, ['ROLE_TECH_SUPPORT'])) {
402+ if ($this->accessDecisionManager->decide ($token, ['ROLE_TECH_SUPPORT'])) {
403403 return true;
404404 }
405405
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ with ``ROLE_SUPER_ADMIN``::
261261 // ...
262262
263263 // 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'])) {
265265 return true;
266266 }
267267
You can’t perform that action at this time.
0 commit comments