changeset 137:2fa9d30f4ab0

debugging user authentication
author casties
date Mon, 21 Jun 2010 13:47:47 +0200
parents a2114cd4673c
children e6beb338f85f
files documentViewer.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/documentViewer.py	Fri Jun 18 16:23:20 2010 +0200
+++ b/documentViewer.py	Mon Jun 21 13:47:47 2010 +0200
@@ -347,13 +347,14 @@
         elif access is None or access in self.authgroups:
             # only local access -- only logged in users
             user = getSecurityManager().getUser()
+            logging.debug("documentViewer (accessOK) user=%s ip=%s"%(user,self.REQUEST.getClientAddr()))
             if user is not None:
                 #print "user: ", user
                 return (user.getUserName() != "Anonymous User")
             else:
                 return False
         
-        logging.debug("documentViewer (accessOK) unknown access type %s"%access)
+        logging.error("documentViewer (accessOK) unknown access type %s"%access)
         return False