diff documentViewer.py @ 42:fbc7258e4b5c

changed default access to deny if no access information
author casties
date Fri, 14 Jul 2006 18:22:36 +0200
parents 0c8ee8fcfd76
children f3bc59cf64d9
line wrap: on
line diff
--- a/documentViewer.py	Thu Jul 06 18:01:42 2006 +0200
+++ b/documentViewer.py	Fri Jul 14 18:22:36 2006 +0200
@@ -145,10 +145,9 @@
         zLOG.LOG("documentViewer (accessOK)", zLOG.INFO, "access type %s"%access)
         if access is None:
             # no information - no access 
-            #TODO: check
-            return True
+            return False
         elif access == 'free':
-	    zLOG.LOG("documentViewer (accessOK)", zLOG.INFO, "access is free")
+            zLOG.LOG("documentViewer (accessOK)", zLOG.INFO, "access is free")
             return True
         elif access in self.authgroups:
             # only local access -- only logged in users