Commit 170a3778 authored by Gabriel Monnerat's avatar Gabriel Monnerat Committed by Jérome Perrin

erp5_trade: Allow users with Associate role to deliver the packing list

With this, change we accept users with permission to Modify portal content or Associate role
parent ac9ffaab
...@@ -31,6 +31,10 @@ ...@@ -31,6 +31,10 @@
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string>Defined a packing list as completely processed</string> </value> <value> <string>Defined a packing list as completely processed</string> </value>
</item> </item>
<item>
<key> <string>guard_expression</string> </key>
<value> <string>python: here.getPortalObject().portal_membership.checkPermission(\'Modify portal content\', here) or user.has_role(("Associate",), here)</string> </value>
</item>
<item> <item>
<key> <string>guard_group</string> </key> <key> <string>guard_group</string> </key>
<value> <value>
...@@ -40,9 +44,7 @@ ...@@ -40,9 +44,7 @@
<item> <item>
<key> <string>guard_permission</string> </key> <key> <string>guard_permission</string> </key>
<value> <value>
<tuple> <tuple/>
<string>Modify portal content</string>
</tuple>
</value> </value>
</item> </item>
<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