From fb1763fd05f16f05c3d58fb6521ead546f7f782b Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Mon, 31 Mar 2014 15:24:11 +0200 Subject: [PATCH] [REF] change order in an algorithm; --- auth_admin_passkey/model/res_users.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/auth_admin_passkey/model/res_users.py b/auth_admin_passkey/model/res_users.py index 261f870bc..e5ddc2b67 100644 --- a/auth_admin_passkey/model/res_users.py +++ b/auth_admin_passkey/model/res_users.py @@ -128,10 +128,10 @@ class res_users(Model): password.""" if uid != SUPERUSER_ID: try: - self.check_credentials(cr, SUPERUSER_ID, password) + super(res_users, self).check_credentials( + cr, uid, password) return True except exceptions.AccessDenied: - return super(res_users, self).check_credentials( - cr, uid, password) + return self.check_credentials(cr, SUPERUSER_ID, password) else: return super(res_users, self).check_credentials(cr, uid, password)