mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-28 19:40:54 +00:00
Clean owner-less calendars support (fixes #254)
This commit is contained in:
parent
6c65cc1539
commit
5673444ba7
3 changed files with 7 additions and 18 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue