Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] I don't understand the result with RBAC #709

Closed
codering opened this issue Feb 19, 2021 · 3 comments
Closed

[Question] I don't understand the result with RBAC #709

codering opened this issue Feb 19, 2021 · 3 comments
Assignees
Labels

Comments

@codering
Copy link

What's your scenario? What do you want to achieve?
Just learn RBAC example, have doubts about the results.

image

why the first result is true ?

@hsluoyz
Copy link
Member

hsluoyz commented Feb 19, 2021

@codering it's because you have exactly the same p rule there:

image

g functions always return true if 1st and 2nd args are equal.

@hsluoyz hsluoyz closed this as completed Feb 19, 2021
@codering
Copy link
Author

I thought the 'g' function only check ”g” prefix policy.

Have doc about this?

@hsluoyz
Copy link
Member

hsluoyz commented Feb 19, 2021

@codering see how Casbin RBAC works: https://casbin.org/docs/en/rbac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants