changeset 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
files documentViewer.py version.txt
diffstat 2 files changed, 3 insertions(+), 4 deletions(-) [+]
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
--- a/version.txt	Thu Jul 06 18:01:42 2006 +0200
+++ b/version.txt	Fri Jul 14 18:22:36 2006 +0200
@@ -1,1 +1,1 @@
-DocumentViewer 0.2.5
\ No newline at end of file
+DocumentViewer 0.2.6
\ No newline at end of file