Skip to content

Allow @role_required to reference parent roles #15

@NickChapman

Description

@NickChapman

If someone has the role HR Manager they should be able to access pages flagged with @role_required('employee').

The way to deal with this appears to be that you need to maintain a map of roles to all ancestors. For example something like:

HR Manager --> Manager, HR Employee, Employee

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions