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):
self.setupCurrentSkin(self.REQUEST)
old_sm = getSecurityManager()
try:
# 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)
newSecurityManager(self.REQUEST, system_user)
currentNode = getCurrentNode()
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