1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-12 20:30:57 +00:00

Merge commit 'refs/merge-requests/6' of gitorious.org:radicale/radicale into merge-requests/6

This commit is contained in:
Guillaume Ayoub 2011-04-10 18:37:23 +02:00
commit 6c65cc1539
4 changed files with 21 additions and 4 deletions

View file

@ -56,6 +56,9 @@ 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
return True
for line in open(FILENAME).readlines():
if line.strip():
login, hash_value = line.strip().split(":")