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

Circular Grants should not be allowed. #38

Open
ahmetkucuk opened this issue Dec 28, 2017 · 1 comment
Open

Circular Grants should not be allowed. #38

ahmetkucuk opened this issue Dec 28, 2017 · 1 comment

Comments

@ahmetkucuk
Copy link

ahmetkucuk commented Dec 28, 2017

Seems like library cannot handle with a circular dependency.

Should be reproducible with something like that:

role1 = create_role('r1')
role2 = create_role('r2')
role3 = create_role('r3')
role4 = create_role('r4')
grant(from_role=role1, to_role=role2)
grant(from_role=role2, to_role=role3)
grant(from_role=role3, to_role=role1)
role1.has_privilege(role4) # Endless loop
@millerdev
Copy link
Contributor

Thanks for the bug report!

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

No branches or pull requests

2 participants