Commit b9d34601 authored by Fabien Morin's avatar Fabien Morin

use a custom variable 'anonymous_module' to know wich module the annonymous application belongs to

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23586 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 93610793
......@@ -132,9 +132,8 @@ def getSecurityCategoryFromEntity(self, base_category_list, entity_name,
# XXX this hack permit to get the module of the application
# the goal is to work with anonymous applications, even if they are
# not reindexed
if len(self.REQUEST.steps) >= 3 and \
'module' in self.REQUEST.steps[-3]:
module_id = self.REQUEST.steps[-3]
module_id = self.REQUEST.get('anonymous_module', None)
if module_id:
module = getattr(portal, module_id, None)
if module is not None:
result = module._getOb(entity_name, None)
......
291
\ No newline at end of file
292
\ No newline at end of file
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