Commit dd960191 authored by Julien Muchembled's avatar Julien Muchembled

Use spec instead of meta_type so that it can work with OFS Folders

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29570 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 85d58e46
......@@ -149,7 +149,7 @@ class LocalRoleAssignorMixIn(object):
# Return also explicit local roles defined as subobjects of the document
if getattr(aq_base(ob), 'isPrincipiaFolderish', 0) and \
self.allowType('Role Definition'):
for role in ob.objectValues(meta_type='ERP5 Role Definition'):
for role in ob.objectValues(spec='ERP5 Role Definition'):
if role.getRoleName():
yield role
......
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