Apply suggestions from code review
This commit is contained in:
@@ -21,6 +21,8 @@ class AccessControlList:
|
|||||||
self.acl_implicit_rule = ACLRule("DENY", "ANY", "ANY", "ANY", "ANY")
|
self.acl_implicit_rule = ACLRule("DENY", "ANY", "ANY", "ANY", "ANY")
|
||||||
elif self.acl_implicit_permission == "ALLOW":
|
elif self.acl_implicit_permission == "ALLOW":
|
||||||
self.acl_implicit_rule = ACLRule("ALLOW", "ANY", "ANY", "ANY", "ANY")
|
self.acl_implicit_rule = ACLRule("ALLOW", "ANY", "ANY", "ANY", "ANY")
|
||||||
|
else:
|
||||||
|
raise ValueError(f"implicit permission must be ALLOW or DENY, got {self.acl_implicit_permission}")
|
||||||
|
|
||||||
# Maximum number of ACL Rules in ACL
|
# Maximum number of ACL Rules in ACL
|
||||||
self.max_acl_rules: int = max_acl_rules
|
self.max_acl_rules: int = max_acl_rules
|
||||||
|
|||||||
Reference in New Issue
Block a user