Commit 0f22c0b3 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

add getViewPermissionAssociate just same as getViewPermissionAssignor.

parent 16802d05
......@@ -184,6 +184,14 @@ class IndexableObjectWrapper(object):
"""
return self._getSecurityParameterList()[2].get('Assignor', None)
def getViewPermissionAssociate(self):
"""Returns the user ID of the user with 'Associate' local role on this
document, if the Associate role has View permission.
If there is more than one Associate local role, the result is undefined.
"""
return self._getSecurityParameterList()[2].get('Associate', None)
def __repr__(self):
return '<Products.ERP5Catalog.CatalogTool.IndexableObjectWrapper'\
' for %s>' % ('/'.join(self.__ob.getPhysicalPath()), )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment