Commit ceb84af7 authored by Sebastien Robin's avatar Sebastien Robin

trade: fixed proxy roles of Order_applyTradeCondition

Such script might be called when only owner has right to do modification,
or only assignee, or only assignor depending on configuration. Thus use
Manager in proxy fole.

This is ok since the guard check for modify portal content before calling
parent 33ac54ba
......@@ -50,9 +50,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[
order = context\n
<value> <string>order = context\n
\n
# copy categories\n
category_list = [\n
......@@ -137,9 +135,7 @@ else:\n
new_category_dict[\'specialise\'] = trade_condition.getRelativeUrl()\n
\n
order.edit(**new_category_dict)\n
]]></string> </value>
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
......@@ -149,8 +145,8 @@ order.edit(**new_category_dict)\n
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Auditor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
......
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