diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py index 424cffe0027149c7bb00a1b1a82924eec936f902..ed67a0503656558371c72bb2cc2c3be743710c3f 100644 --- a/product/ERP5Type/Base.py +++ b/product/ERP5Type/Base.py @@ -3109,10 +3109,6 @@ class Base( CopyContainer, """Assign Local Roles to Groups on self, based on Portal Type Role Definitions and "ERP5 Role Definition" objects contained inside self. """ - updateLocalRolesOnSecurityGroups = UnrestrictedMethod(self._updateLocalRolesOnSecurityGroups) - return updateLocalRolesOnSecurityGroups(**kw) - - def _updateLocalRolesOnSecurityGroups(self, **kw): self._getTypesTool().getTypeInfo(self)\ .updateLocalRolesOnSecurityGroups(self, **kw) diff --git a/product/ERP5Type/ERP5Type.py b/product/ERP5Type/ERP5Type.py index 28d40294adae17ffb4e78e8809da40ff18902e5d..3de6fcee7cebd44baeebec8d93352bf99a1f55a6 100644 --- a/product/ERP5Type/ERP5Type.py +++ b/product/ERP5Type/ERP5Type.py @@ -39,6 +39,7 @@ from Products.CMFCore.utils import _checkPermission from Products.ERP5Type import PropertySheet from Products.ERP5Type import _dtmldir from Products.ERP5Type import Permissions +from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod # Security uses ERP5Security by default try: @@ -450,7 +451,12 @@ class ERP5TypeInformation( FactoryTypeInformation, return factory_method(portal, id).propertyMap() security.declarePrivate('updateLocalRolesOnSecurityGroups') - def updateLocalRolesOnSecurityGroups(self, ob, user_name=None, + def updateLocalRolesOnSecurityGroups(self, *args, **kw): + updateLocalRolesOnSecurityGroups = \ + UnrestrictedMethod(self._updateLocalRolesOnSecurityGroups) + return updateLocalRolesOnSecurityGroups(*args, **kw) + + def _updateLocalRolesOnSecurityGroups(self, ob, user_name=None, reindex=True): """ Assign Local Roles to Groups on object 'ob', based on Portal Type Role