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

Nested requirements does not propagate user_infos #80

Open
BorjaEst opened this issue Apr 9, 2024 · 0 comments
Open

Nested requirements does not propagate user_infos #80

BorjaEst opened this issue Apr 9, 2024 · 0 comments

Comments

@BorjaEst
Copy link
Contributor

BorjaEst commented Apr 9, 2024

req = _req() if callable(_req) else _req

Should call _req(user_infos) otherwise is not possible to evaluate the requirement if the user data is not provided.
You can test it by calling a nested requirement: AccessLevel("downer", OneOf(AllOf(is_registered, is_owner), is_admin))

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

1 participant