Diff for /documentViewer/documentViewer.py between versions 1.16 and 1.17

version 1.16, 2006/07/18 16:59:57 version 1.17, 2006/07/26 12:23:55
Line 143  class documentViewer(Folder): Line 143  class documentViewer(Folder):
         """returns if access to the resource is granted"""          """returns if access to the resource is granted"""
         access = docinfo.get('accessType', None)          access = docinfo.get('accessType', None)
         zLOG.LOG("documentViewer (accessOK)", zLOG.INFO, "access type %s"%access)          zLOG.LOG("documentViewer (accessOK)", zLOG.INFO, "access type %s"%access)
         if access is None:          if access is not None and access == 'free':
             # no information - no access   
             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              return True
         elif access in self.authgroups:          elif access is None or access in self.authgroups:
             # only local access -- only logged in users              # only local access -- only logged in users
             user = getSecurityManager().getUser()              user = getSecurityManager().getUser()
             if user is not None:              if user is not None:

Removed from v.1.16  
changed lines
  Added in v.1.17


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>