diff --git a/product/ERP5Catalog/CatalogTool.py b/product/ERP5Catalog/CatalogTool.py index 9841ee6f84d920d4a0445ea1a43ffb2ae452756e..43d2b6ded98fd5507eb23df763e84a9168fab150 100644 --- a/product/ERP5Catalog/CatalogTool.py +++ b/product/ERP5Catalog/CatalogTool.py @@ -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()), )