i which that i can add new users role like this
role_hierarchy:
ROLE_ADMIN: ROLE_USER
ROLE_SUPER_ADMIN: ROLE_ADMIN
ROLE_SUPER_ADMIN: ROLE_RMI
ROLE_SUPER_ADMIN: ROLE_RM
ROLE_SUPER_ADMIN: ROLE_RMIS
ROLE_SUPER_ADMIN: ROLE_RP
and add them access to same path
- { path: ^/admin, role: ROLE_ADMIN ROLE_RM ROLE_RP ROLE_RMIS ROLE_RMI }
and then in my controller , i specifie what role should have to use this function
for exemple , ROLE_RP can change users name , ROLE_ADMIN can add new users ......
can any one help me to do this
Aucun commentaire:
Enregistrer un commentaire