mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-15 20:36:55 +00:00
Merge branch 'master' of git://gitorious.org/radicale/radicale
This commit is contained in:
commit
c34d5cd7cd
3 changed files with 9 additions and 3 deletions
|
@ -56,6 +56,10 @@ def _sha1(hash_value, password):
|
|||
|
||||
def has_right(owner, user, password):
|
||||
"""Check if ``user``/``password`` couple is valid."""
|
||||
if owner is None and PERSONAL:
|
||||
# No owner and personal calendars, everybody is allowed
|
||||
return True
|
||||
|
||||
for line in open(FILENAME).readlines():
|
||||
if line.strip():
|
||||
login, hash_value = line.strip().split(":")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue