Commit 77b3f202 authored by Vincent Pelletier's avatar Vincent Pelletier

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

System user should be more reliable than whatever user has ownership of
catalog tool (which may have its account closed or its roles changed).
parent d3e0e70a
...@@ -1285,10 +1285,7 @@ class ActivityTool (BaseTool): ...@@ -1285,10 +1285,7 @@ class ActivityTool (BaseTool):
self.setupCurrentSkin(self.REQUEST) self.setupCurrentSkin(self.REQUEST)
old_sm = getSecurityManager() old_sm = getSecurityManager()
try: try:
# get owner of portal_catalog, so normally we should be able to newSecurityManager(self.REQUEST, system_user)
# have the permission to invoke all activities
user = self.portal_catalog.getWrappedOwner()
newSecurityManager(self.REQUEST, user)
currentNode = getCurrentNode() currentNode = getCurrentNode()
self.registerNode(currentNode) self.registerNode(currentNode)
......
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