Commit d2821caa authored by Vincent Pelletier's avatar Vincent Pelletier

Revert "Products.CMFActivity.ActivityTool: Remove dependency on portal_catalog owner."

This reverts commit 77b3f202.
For some obscure reason, this affects unit tests related to inventory
unit conversion. There seems to be too much code to cleanup to keep this
patch for now, so drop it.
parent ee6119c7
......@@ -1285,7 +1285,10 @@ class ActivityTool (BaseTool):
old_sm = getSecurityManager()
newSecurityManager(self.REQUEST, system_user)
# get owner of portal_catalog, so normally we should be able to
# have the permission to invoke all activities
user = self.portal_catalog.getWrappedOwner()
newSecurityManager(self.REQUEST, user)
currentNode = getCurrentNode()
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment