Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

How to list inherited permissions by father role? #137

Copy link
Copy link

Description

@g0194776
Issue body actions

Hi guys,

I am a new user of Casbin, I have some confusions about the role inheritance with RBAC model. For example:

If I have two roles just like that:
role:admin --> has permission: resource1, read
role:area_admin --> which inherited by role:admin and has permission: resource2, write

I expected that using role name(role:admin) can list all of sub permissions, the result has 2 rows:

  • permission: resource1, read
  • permission: resource2, write

BUT now, what I listed just ONLY one row in result: permission: resource1, read by golang API.

why?

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.