version 1.13, 2006/06/14 16:24:10
|
version 1.14, 2006/07/06 16:01:42
|
Line 142 class documentViewer(Folder):
|
Line 142 class documentViewer(Folder):
|
def isAccessible(self, docinfo): |
def isAccessible(self, docinfo): |
"""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) |
if access is None: |
if access is None: |
# no information - no access |
# no information - no access |
#TODO: check |
#TODO: check |
return True |
return True |
elif access == 'free': |
elif access == 'free': |
|
zLOG.LOG("documentViewer (accessOK)", zLOG.INFO, "access is free") |
return True |
return True |
elif access in self.authgroups: |
elif access in self.authgroups: |
# only local access -- only logged in users |
# only local access -- only logged in users |