Fix a read/write mismatch in from_file rights manager

This commit is contained in:
Guillaume Ayoub 2013-05-15 22:29:40 +02:00
parent dd7f886fcc
commit 45e844cda2

View File

@ -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: