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 @@ ...@@ -50,9 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string>order = context\n
order = context\n
\n \n
# copy categories\n # copy categories\n
category_list = [\n category_list = [\n
...@@ -137,9 +135,7 @@ else:\n ...@@ -137,9 +135,7 @@ else:\n
new_category_dict[\'specialise\'] = trade_condition.getRelativeUrl()\n new_category_dict[\'specialise\'] = trade_condition.getRelativeUrl()\n
\n \n
order.edit(**new_category_dict)\n order.edit(**new_category_dict)\n
</string> </value>
]]></string> </value>
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
...@@ -149,8 +145,8 @@ order.edit(**new_category_dict)\n ...@@ -149,8 +145,8 @@ order.edit(**new_category_dict)\n
<key> <string>_proxy_roles</string> </key> <key> <string>_proxy_roles</string> </key>
<value> <value>
<tuple> <tuple>
<string>Assignee</string> <string>Manager</string>
<string>Auditor</string> <string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </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