mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-19 19:10:54 +00:00
Allow missing owner
This commit is contained in:
parent
2e1b51e3c1
commit
72c57a042d
4 changed files with 21 additions and 4 deletions
|
@ -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(":")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue