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

Allow explicit definition of ACL evaluation combinator. #12

Open
amcgregor opened this issue Dec 21, 2023 · 0 comments
Open

Allow explicit definition of ACL evaluation combinator. #12

amcgregor opened this issue Dec 21, 2023 · 0 comments

Comments

@amcgregor
Copy link
Member

amcgregor commented Dec 21, 2023

Defaults to first-matching, should be an option to require all.

Problematic sample case:

@when(when.authenticated)
class Example:
	@when(when.administrative)
	def example(self): pass

The expectation would be that /example is more secure than /, but when.authenticated always returns an authoritative (non-None) answer. This short-circuits further evaluation, forcing the explicit use of inherit=False.

Alternatively: evaluate how rules are nested and evaluated. Should we reverse the order of evaluation, to deepest-first?

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

No branches or pull requests

1 participant