diff --git a/product/ERP5/Document/Domain.py b/product/ERP5/Document/Domain.py index b742dfd85c88d68f42566877ebccd58879134f83..3ef7ed1e34863de090324752ac5d3dae23ed374a 100755 --- a/product/ERP5/Document/Domain.py +++ b/product/ERP5/Document/Domain.py @@ -76,3 +76,11 @@ class Domain(Predicate, MetaNode, MetaResource): # Declarative interfaces __implements__ = ( Interface.Predicate, ) + + security.declareProtected( Permissions.AccessContentsInformation, 'getRelativeUrl' ) + def getRelativeUrl(self): + """ + We must eliminate portal_categories in the RelativeUrl + since it is never present in the category list + """ + return '/'.join(self.portal_url.getRelativeContentPath(self)[1:])