Commit 399bc515 authored by Kevin Deldycke's avatar Kevin Deldycke

Filter categories to not include ones saved by business template update (this...

Filter categories to not include ones saved by business template update (this patch waiting bug #124 to be corrected).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4550 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4ea696a9
......@@ -549,7 +549,13 @@ class ERP5Site ( CMFSite, FolderMixIn ):
"""
Return List of category values to generate security groups.
"""
return self._getPortalGroupedCategoryList('assignment') or self._getPortalConfiguration('portal_assignment_base_category_list')
### Here is the filter patch waiting bug #124 to be corrected
category_list = self._getPortalGroupedCategoryList('assignment') or self._getPortalConfiguration('portal_assignment_base_category_list')
clean_list = []
for cat in category_list:
if cat.find("_btsave") == -1:
clean_list.append(cat)
return clean_list
security.declareProtected(Permissions.AccessContentsInformation, 'getDefaultModuleId')
def getDefaultModuleId(self, portal_type):
......
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