Browse Source

[REF] change order in an algorithm;

pull/2/head
Sylvain LE GAL 11 years ago
parent
commit
fb1763fd05
  1. 6
      auth_admin_passkey/model/res_users.py

6
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)
Loading…
Cancel
Save