web/views/cwuser.py
branchstable
changeset 7737 db6d296cc66f
parent 7334 976346907d98
child 7740 47a20b7aed23
--- a/web/views/cwuser.py	Thu Aug 04 12:50:55 2011 +0200
+++ b/web/views/cwuser.py	Thu Aug 04 12:50:57 2011 +0200
@@ -168,6 +168,10 @@
 
 class CWUserManagementView(StartupView):
     __regid__ = 'cw.user-management'
+    # XXX one could wish to display for instance only user's firstname/surname
+    # for non managers but filtering out NULL cause crash with an ldapuser
+    # source.
+    __select__ = match_user_groups('managers')
     rql = ('Any U,USN,F,S,U,UAA,UDS, L,UAA,UDSN ORDERBY L WHERE U is CWUser, '
            'U login L, U firstname F, U surname S, '
            'U in_state US, US name USN, '