Browse Source

[FIX] don't do anything for admin

pull/250/head
Holger Brunn 9 years ago
parent
commit
3db7523d7f
  1. 2
      auth_dynamic_groups/model/res_users.py

2
auth_dynamic_groups/model/res_users.py

@ -28,7 +28,7 @@ class res_users(Model):
def _login(self, db, login, password):
uid = super(res_users, self)._login(db, login, password)
if uid:
if uid and uid != SUPERUSER_ID:
self.update_dynamic_groups(uid, db)
return uid

Loading…
Cancel
Save