Skip to content

Allow @role_required to reference parent roles #15

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

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions