1
0
Эх сурвалжийг харах

take encryption function from globals() rather than locals()

Lukasz Langa 15 жил өмнө
parent
commit
00fb296ed7

+ 1 - 1
radicale/acl/htpasswd.py

@@ -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