0

I have application where I want to grant or prohibited the roles to access the Controller.

Admin can change the the privilege of roles in roles management.

below is pic of role management where admin can change the privilege

How to apply Authorization on Controllers based on these dynamically changing privileges.

Meer
  • 656
  • 9
  • 18

1 Answers1

2

I think this is exactly what you need. You can create custom policies, in your case a policy per controller where you get the roles from the database in your custom policy.

Community
  • 1
  • 1
Nicolas Zawada
  • 497
  • 1
  • 3
  • 12