mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
take encryption function from globals() rather than locals()
This commit is contained in:
parent
0171690af5
commit
00fb296ed7
1 changed files with 1 additions and 1 deletions
|
@ -65,5 +65,5 @@ def has_right(owner, user, password):
|
|||
if line.strip():
|
||||
login, hash_value = line.strip().split(":")
|
||||
if login == user and (not PERSONAL or user == owner):
|
||||
return locals()["_%s" % ENCRYPTION](hash_value, password)
|
||||
return globals()["_%s" % ENCRYPTION](hash_value, password)
|
||||
return False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue