--- documentViewer/documentViewer.py 2006/07/18 16:59:57 1.16 +++ documentViewer/documentViewer.py 2006/07/26 12:23:55 1.17 @@ -143,13 +143,10 @@ class documentViewer(Folder): """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 - return False - elif access == 'free': + if access is not None and access == 'free': zLOG.LOG("documentViewer (accessOK)", zLOG.INFO, "access is free") return True - elif access in self.authgroups: + elif access is None or access in self.authgroups: # only local access -- only logged in users user = getSecurityManager().getUser() if user is not None: