Commit d9cd59aa by Bryton Lacquement

wip: ERP5Site: make Unauthorized redirection work with CMF 2.3

Products.CMFCore.CookieCrumbler's redirect support was moved to
Products.CMFDefault in CMF 2.3, cf:
- CMFCore: 387bd379fd9655aa1462715a04b4664f5c54974a
- CMFDefault: d319a68e8299e42a76f605ad79383bb78db14031

Registering portal_actions allows CMFDefault to redirect correctly,
cf UnauthorizedView.__call__
1 parent 45f0ed21
......@@ -337,7 +337,7 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
sm = self._components
# We don't want to register everything.
for tool_id in ("portal_skins", "portal_types", "portal_membership",
"portal_url", "portal_workflow"):
"portal_url", "portal_workflow", "portal_actions"):
# XXX: need to find the proper API to access "self.tool_id"
tool = getattr(self, tool_id, None)
if tool is not None:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!