Commit b4cdb716 authored by Julien Muchembled's avatar Julien Muchembled

Fix updateLocalRolesOnSecurityGroups when called on an HBTree.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28912 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9beb978b
......@@ -471,8 +471,9 @@ class ERP5TypeInformationMixIn( FactoryTypeInformation,
# Fill it with explicit local roles defined as subobjects of current
# object
if getattr(aq_base(ob), 'isPrincipiaFolderish', 0):
for roledef in ob.objectValues(spec = 'ERP5 Role Definition'):
if getattr(aq_base(ob), 'isPrincipiaFolderish', 0) and \
self.allowType('Role Definition'):
for roledef in ob.objectValues(portal_type='Role Definition'):
if roledef.getRoleName():
role_category_list_dict.setdefault(roledef.getRoleName(), []).append(
{
......
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