From b50cddeff3b3413b3a188c7dbaa98b3735f6f41a Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Thu, 6 Dec 2007 17:20:21 +0000 Subject: [PATCH] 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 --- .../erp5_core/ExtensionTemplateItem/StandardSecurity.py | 4 ++-- product/ERP5/bootstrap/erp5_core/bt/revision | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_core/ExtensionTemplateItem/StandardSecurity.py b/product/ERP5/bootstrap/erp5_core/ExtensionTemplateItem/StandardSecurity.py index d960ac0277..943f240ba5 100644 --- a/product/ERP5/bootstrap/erp5_core/ExtensionTemplateItem/StandardSecurity.py +++ b/product/ERP5/bootstrap/erp5_core/ExtensionTemplateItem/StandardSecurity.py @@ -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: diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index 24c5507b23..dc9e6b20e2 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -633 \ No newline at end of file +634 \ No newline at end of file -- 2.30.9