mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-05 14:17:35 +03:00
whitelist new permissions
This commit is contained in:
parent
e0594d5b33
commit
457af284e1
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ class Access:
|
||||||
|
|
||||||
def check(self, permission: str,
|
def check(self, permission: str,
|
||||||
item: Optional[types.CollectionOrItem] = None) -> bool:
|
item: Optional[types.CollectionOrItem] = None) -> bool:
|
||||||
if permission not in "rwdD":
|
if permission not in "rwdDoO":
|
||||||
raise ValueError("Invalid permission argument: %r" % permission)
|
raise ValueError("Invalid permission argument: %r" % permission)
|
||||||
if not item:
|
if not item:
|
||||||
permissions = permission + permission.upper()
|
permissions = permission + permission.upper()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue