[Erp5-report] r18079 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: ExtensionTemplateI...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Dec 6 18:20:21 CET 2007
Author: romain
Date: Thu Dec 6 18:20:21 2007
New Revision: 18079
URL: http://svn.erp5.org?rev=18079&view=rev
Log:
Add possibility to define child category which are not Categories (ex: all people assigned to a project can access the project module).
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/ExtensionTemplateItem/StandardSecurity.py
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/ExtensionTemplateItem/StandardSecurity.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/ExtensionTemplateItem/StandardSecurity.py?rev=18079&r1=18078&r2=18079&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/ExtensionTemplateItem/StandardSecurity.py (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/ExtensionTemplateItem/StandardSecurity.py Thu Dec 6 18:20:21 2007
@@ -74,8 +74,8 @@
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:
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=18079&r1=18078&r2=18079&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Thu Dec 6 18:20:21 2007
@@ -1,1 +1,1 @@
-633
+634
More information about the Erp5-report
mailing list