Commit 7a3534d9 authored by Fabien Morin's avatar Fabien Morin

it was not possible to update security because *args, and **kw were missing

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24455 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8f2a8149
......@@ -2807,14 +2807,14 @@ class Base( CopyContainer,
return []
security.declareProtected(Permissions.ModifyPortalContent, 'reindexObjectSecurity')
def reindexObjectSecurity(self):
def reindexObjectSecurity(self, *args, **kw):
"""
Reindex security-related indexes on the object
(and its descendants).
"""
# In ERP5, simply reindex all objects.
#LOG('reindexObjectSecurity', 0, 'self = %r, self.getPath() = %r' % (self, self.getPath()))
self.reindexObject()
self.reindexObject(*args, **kw)
security.declareProtected( Permissions.AccessContentsInformation, 'asXML' )
def asXML(self, ident=0):
......
......@@ -1075,13 +1075,13 @@ class Folder(CopyContainer, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn,
security.declareProtected(Permissions.ModifyPortalContent,
'reindexObjectSecurity')
def reindexObjectSecurity(self):
def reindexObjectSecurity(self, *args, **kw):
"""
Reindex security-related indexes on the object
(and its descendants).
"""
# In ERP5, simply reindex all objects.
self.recursiveReindexObject()
self.recursiveReindexObject(*args, **kw)
security.declarePublic( 'recursiveReindexObject' )
def recursiveReindexObject(self, activate_kw=None, **kw):
......
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