web/application.py
changeset 6427 c8a5ac2d1eaa
parent 6333 e3994fcc21c3
child 6570 7e9a1a5919e8
--- a/web/application.py	Sat Oct 09 00:05:50 2010 +0200
+++ b/web/application.py	Sat Oct 09 00:05:52 2010 +0200
@@ -224,7 +224,7 @@
     def _update_last_login_time(self, req):
         # XXX should properly detect missing permission / non writeable source
         # and avoid "except (RepositoryError, Unauthorized)" below
-        if req.user.cw_metainformation()['source']['adapter'] == 'ldapuser':
+        if req.user.cw_metainformation()['source']['type'] == 'ldapuser':
             return
         try:
             req.execute('SET X last_login_time NOW WHERE X eid %(x)s',