Answer the question
In order to leave comments, you need to log in
How to solve problem with role hierarchy in Symfony?
The situation is this - I brought the hierarchy to the base, made a service (and overridden it security.role_hierarchy
), which expands BasicRoleHierarchy
and passes my hierarchy to it in the constructor, which so far looks like this:
Array
(
[ROLE_ADMIN] => Array
(
[0] => ROLE_USER
)
[ROLE_USER] => Array
(
[0] => ROLE_CAN_VIEW_MAIN
)
[ROLE_CAN_VIEW_MAIN] => Array
(
)
)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question