Commit b50cddef authored by Romain Courteaud's avatar Romain Courteaud

Add possibility to define child category which are not Categories (ex: all...

Add possibility to define child category which are not Categories (ex: all people assigned to a project can access the project module).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18079 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bba21106
......@@ -74,8 +74,8 @@ def getSecurityCategoryFromAssignment(self, base_category_list, user_name, objec
if category_value_list:
for category_value in category_value_list:
if base_category in child_category_list:
if category_value.getPortalType() == 'Category':
while category_value.getPortalType() == 'Category':
if category_value.getPortalType() not in ('Base Category', 'ERP5 Site'):
while category_value.getPortalType() not in ('Base Category', 'ERP5 Site'):
category_dict.setdefault(base_category, []).append('%s*' % category_value.getRelativeUrl())
category_value = category_value.getParentValue()
else:
......
633
\ No newline at end of file
634
\ No newline at end of file
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