Suppress the hidden logform when the user is already connected stable
authorAlain Leufroy <alain.leufroy@logilab.fr>
Thu, 04 Mar 2010 08:50:27 +0100
branchstable
changeset 4781 d12cbd0b7574
parent 4780 58432e8e7dde
child 4782 da0ad1b10779
Suppress the hidden logform when the user is already connected by adding a conditionned logform
web/views/basetemplates.py
--- a/web/views/basetemplates.py	Thu Mar 04 08:50:21 2010 +0100
+++ b/web/views/basetemplates.py	Thu Mar 04 08:50:27 2010 +0100
@@ -391,8 +391,9 @@
         self.w(u'<td id="lastcolumn">')
         self.w(u'</td>\n')
         self.w(u'</tr></table>\n')
-        self.wview('logform', rset=self.cw_rset, id='popupLoginBox', klass='hidden',
-                   title=False, showmessage=False)
+        if self._cw.cnx.anonymous_connection:
+            self.wview('logform', rset=self.cw_rset, id='popupLoginBox',
+                       klass='hidden', title=False, showmessage=False)
 
     def state_header(self):
         state = self._cw.search_state