[FIX] don't do anything for admin

pull/250/head
Holger Brunn 2015-09-08 15:34:14 +02:00
parent cf9509cb9a
commit 3db7523d7f
1 changed files with 1 additions and 1 deletions

View File

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