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 @@ -337,12 +337,12 @@ logic you want::
337337 }
338338
339339 // 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'])) {
341341 return true;
342342 }
343343
344344 // check for any roles you want
345- if ($this->accessDecisionManager->isGranted ($token, ['ROLE_TECH_SUPPORT'])) {
345+ if ($this->accessDecisionManager->decide ($token, ['ROLE_TECH_SUPPORT'])) {
346346 return true;
347347 }
348348
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ with ``ROLE_SUPER_ADMIN``::
248248 // ...
249249
250250 // 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'])) {
252252 return true;
253253 }
254254
You can’t perform that action at this time.
0 commit comments