indigo-dc / flaat

FLAsk with Access Tokens - FLAAT
MIT License
11 stars 6 forks source link

Nested requirements does not propagate user_infos #80

Open BorjaEst opened 6 months ago

BorjaEst commented 6 months ago

https://github.com/indigo-dc/flaat/blob/a6f40e47431d075eebd73716d8846f909fb63bc8/flaat/requirements.py#L115

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))