- def __init__(
- self,
- *,
- subacls: Optional[List[SimpleACL]],
- match_requirement: int = ALL
- ) -> None:
+ def __call__(self, x: Any):
+ return any(acl(x) for acl in self.subacls)
+
+
+class AllCompoundACL(object):
+ """An ACL that allows if all of its subacls allow."""
+ def __init__(self, subacls: List[SimpleACL]):
+ assert subacls is not None