Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add getReachingRoleNames to RoleHierarchyInterface #54202

Closed as not planned
Closed as not planned
@philepsybo

Description

@philepsybo

Description

As of now RoleHierarchyInterface contains getReachableRoleNames as its only method.
When for example I am querying the DB with the goal to get all users that can reach a certain role, it would be nice to have something like getReachingRoleNames(array $reachableRoles) that basically returns a set of all role-names that I encounter when I walk up the role-hierachy tree starting from all given reachableRoles.

Are there any arguments against something like that?

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions