Commit 78318ce8 authored by Jérome Perrin's avatar Jérome Perrin

There was a mistake in r15747, the owner was not taken into account when called

from an "executable" (restricted python) without proxy role.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17118 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 976c858d
...@@ -492,7 +492,9 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject): ...@@ -492,7 +492,9 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
# if called by an executable with proxy roles, we don't use # if called by an executable with proxy roles, we don't use
# owner, but only roles from the proxy. # owner, but only roles from the proxy.
eo = getSecurityManager()._context.stack[-1] eo = getSecurityManager()._context.stack[-1]
proxy_roles = getattr(eo, '_proxy_roles',None) proxy_roles = getattr(eo, '_proxy_roles', None)
if not proxy_roles:
role_column_dict['owner'] = user_str
except IndexError: except IndexError:
role_column_dict['owner'] = user_str role_column_dict['owner'] = user_str
......
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