'Laminas acl navigation with multiple roles
I have question about laminas navigation and acl. In my application, a user can have multiple roles non hierarchicals. But in the documentation, I have read that only one role should be passed to it via setAcl('myacl')->setRole('roleUder'). Because my users can have cumulative roles, how to apply them on navigation?
Solution 1:[1]
More information in regards to your roles would be very helpful. You can only pass one role to the navigation helper.
If role A + role B grants privilege X
Then role B inherits from role A. Role B gets passed to the navigation helper.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |