Skip to content

Allow explicit definition of ACL evaluation combinator. #12

@amcgregor

Description

@amcgregor

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions