EasyAdmin! For an Awesomely Powerful Admin Area
Restricting Access to an Entire Crud Section
  Start your All-Access Pass to unlock this challenge
Buy Access Login

Challenge 1 / 1

In one CRUD section, I need to allow access only if the user has ROLE_SIMBA_ADMIN. But for one specific action (the DELETE action), I need to require ROLE_MUFASA_ADMIN. What's the best way to do this?

Note: ROLE_MUFASA_ADMIN also grants access to ROLE_SIMBA_ADMIN in role_hierarchy.

Skip challenges and go to theNext Chapter

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.