Skip to content
Snippets Groups Projects
Unverified Commit 0ea7842c authored by Olivier Dony's avatar Olivier Dony
Browse files

[FIX] base: force local cursor to avoid mismatch

parent 8aba05dc
Branches
Tags
No related merge requests found
......@@ -501,6 +501,7 @@ class res_users(osv.osv):
if not passwd:
# empty passwords disallowed for obvious security reasons
raise openerp.exceptions.AccessDenied()
db = self.pool.db_name
if self.__uid_cache.setdefault(db, {}).get(uid) == passwd:
return
cr = self.pool.cursor()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment