whitelist new permissions

This commit is contained in:
Peter Bieringer 2024-09-30 21:28:29 +02:00
parent e0594d5b33
commit 457af284e1

View file

@ -126,7 +126,7 @@ class Access:
def check(self, permission: str,
item: Optional[types.CollectionOrItem] = None) -> bool:
if permission not in "rwdD":
if permission not in "rwdDoO":
raise ValueError("Invalid permission argument: %r" % permission)
if not item:
permissions = permission + permission.upper()