Clean owner-less calendars support (fixes #254)

This commit is contained in:
Guillaume Ayoub
2011-04-10 18:51:38 +02:00
parent 6c65cc1539
commit 5673444ba7
3 changed files with 7 additions and 18 deletions

View File

@@ -56,7 +56,8 @@ def _sha1(hash_value, password):
def has_right(owner, user, password):
"""Check if ``user``/``password`` couple is valid."""
if owner is None: # no owner - everybody is allowed
if owner is None and PERSONAL:
# No owner and personal calendars, everybody is allowed
return True
for line in open(FILENAME).readlines():