Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hasRole() function doesnt work with children roles #217

Open
zahiaracks opened this issue Sep 22, 2020 · 0 comments
Open

hasRole() function doesnt work with children roles #217

zahiaracks opened this issue Sep 22, 2020 · 0 comments

Comments

@zahiaracks
Copy link

Lets say we have two roles: department-boss role and director role, whose child is the department-boss role.
In that scenario, ill expect the function hasRole('department-boss') returns true when im logged in like a user that has director role, but its returns false.
I saw that in the session __userRoles only shows [0 => 'director'] too.

Is there any other way to query for child roles or is it just a bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant