[Erp5-report] r17118 - /erp5/trunk/products/ERP5Catalog/CatalogTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Oct 23 14:11:51 CEST 2007
Author: jerome
Date: Tue Oct 23 14:11:51 2007
New Revision: 17118
URL: http://svn.erp5.org?rev=17118&view=rev
Log:
There was a mistake in r15747, the owner was not taken into account when called
from an "executable" (restricted python) without proxy role.
Modified:
erp5/trunk/products/ERP5Catalog/CatalogTool.py
Modified: erp5/trunk/products/ERP5Catalog/CatalogTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Catalog/CatalogTool.py?rev=17118&r1=17117&r2=17118&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Catalog/CatalogTool.py (original)
+++ erp5/trunk/products/ERP5Catalog/CatalogTool.py Tue Oct 23 14:11:51 2007
@@ -492,7 +492,9 @@
# if called by an executable with proxy roles, we don't use
# owner, but only roles from the proxy.
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:
role_column_dict['owner'] = user_str
More information about the Erp5-report
mailing list