--- documentViewer/documentViewer.py 2006/06/14 16:24:10 1.13 +++ documentViewer/documentViewer.py 2006/07/14 16:22:36 1.15 @@ -142,11 +142,12 @@ class documentViewer(Folder): def isAccessible(self, docinfo): """returns if access to the resource is granted""" access = docinfo.get('accessType', None) + 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") return True elif access in self.authgroups: # only local access -- only logged in users @@ -517,4 +518,4 @@ def manage_addDocumentViewerTemplate(sel return '' - \ No newline at end of file +