Commit 345de486 authored by Jérome Perrin's avatar Jérome Perrin

ERP5Type: Use unrestricted catalog search when updating roles

Otherwise roles will not be recalculated on documents that manager
cannot see.
parent ffe45579
...@@ -163,8 +163,9 @@ class LocalRoleAssignorMixIn(object): ...@@ -163,8 +163,9 @@ class LocalRoleAssignorMixIn(object):
def updateRoleMapping(self, REQUEST=None, form_id='', priority=3): def updateRoleMapping(self, REQUEST=None, form_id='', priority=3):
"""Update the local roles in existing objects. """Update the local roles in existing objects.
""" """
self.getPortalObject().portal_catalog.searchAndActivate( self.getPortalObject().portal_catalog._searchAndActivate(
'updateLocalRolesOnSecurityGroups', 'updateLocalRolesOnSecurityGroups',
restricted=False,
method_kw={ method_kw={
'activate_kw': { 'activate_kw': {
'priority': priority, 'priority': priority,
......
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