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 @@ -402,12 +402,12 @@ logic you want::
402402 }
403403
404404 // 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'])) {
406406 return true;
407407 }
408408
409409 // check for any roles you want
410- if ($this->accessDecisionManager->isGranted ($token, ['ROLE_TECH_SUPPORT'])) {
410+ if ($this->accessDecisionManager->decide ($token, ['ROLE_TECH_SUPPORT'])) {
411411 return true;
412412 }
413413
Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ with ``ROLE_SUPER_ADMIN``::
265265 // ...
266266
267267 // 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'])) {
269269 return true;
270270 }
271271
You can’t perform that action at this time.
0 commit comments