Commit b46ec583 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Updated API for updateRoleMapping so that it can be used in scripts.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12699 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b1ca87ef
......@@ -252,8 +252,8 @@ class RoleProviderBase:
, base_category_script=base_category_script
)
security.declareProtected( ManagePortal, 'updateRoleMappings' )
def updateRoleMappings( self, REQUEST, manage_tabs_message=None ):
security.declareProtected( ManagePortal, 'updateRoleMapping' )
def updateRoleMapping( self, REQUEST=None, manage_tabs_message=None ):
"""Update the local roles in existing objects.
"""
portal_catalog = self.portal_catalog
......@@ -267,6 +267,7 @@ class RoleProviderBase:
obj.updateLocalRolesOnSecurityGroups(user_name = user_id)
i += 1
if REQUEST is not None:
return self.manage_editRolesForm(REQUEST, manage_tabs_message='%d objects updated' % (i,))
......
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