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

This commit is contained in:
Guillaume Ayoub
2011-05-11 05:01:00 +02:00
5 changed files with 51 additions and 15 deletions

View File

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