Open BorjaEst opened 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))
_req(user_infos)
AccessLevel("downer", OneOf(AllOf(is_registered, is_owner), is_admin))
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))