Changeset 45:0391fe75aef3 in documentViewer for documentViewer.py
- Timestamp:
- Jul 26, 2006, 12:23:55 PM (18 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentViewer.py
r43 r45 144 144 access = docinfo.get('accessType', None) 145 145 zLOG.LOG("documentViewer (accessOK)", zLOG.INFO, "access type %s"%access) 146 if access is None: 147 # no information - no access 148 return False 149 elif access == 'free': 146 if access is not None and access == 'free': 150 147 zLOG.LOG("documentViewer (accessOK)", zLOG.INFO, "access is free") 151 148 return True 152 elif access i n self.authgroups:149 elif access is None or access in self.authgroups: 153 150 # only local access -- only logged in users 154 151 user = getSecurityManager().getUser()
Note: See TracChangeset
for help on using the changeset viewer.