Commit ad765939 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Add debugging message and missing security declaration for ComponentTool reset.

parent 6db1ecc3
......@@ -46,10 +46,13 @@ class ComponentTool(BaseTool):
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
security.declareProtected(Permissions.ManagePortal, 'reset')
def reset(self, is_sync=False):
"""
XXX-arnau: global reset
"""
LOG("ERP5Type.Tool.ComponentTool", INFO, "Global reset")
import erp5.component
portal = self.getPortalObject()
......
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