mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Fix a read/write mismatch in from_file rights manager
This commit is contained in:
parent
dd7f886fcc
commit
45e844cda2
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ def write_authorized(user, collection):
|
||||||
"""Check if the user is allowed to write the collection."""
|
"""Check if the user is allowed to write the collection."""
|
||||||
if user is None:
|
if user is None:
|
||||||
return False
|
return False
|
||||||
elif owner_only.read_authorized(user, collection):
|
elif owner_only.write_authorized(user, collection):
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue