Laminas acl navigation with multiple roles

129 views Asked by At

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?

1

There are 1 answers

1
Tyrsson On

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.