Skip to content

hasRole() function doesnt work with children roles  #217

Description

@zahiaracks

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions