Commit 09fc9f6b 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 92bd4def
......@@ -31,6 +31,10 @@
<key> <string>description</string> </key>
<value> <string>Defined a packing list as completely processed</string> </value>
</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>
<key> <string>guard_group</string> </key>
<value>
......@@ -40,9 +44,7 @@
<item>
<key> <string>guard_permission</string> </key>
<value>
<tuple>
<string>Modify portal content</string>
</tuple>
<tuple/>
</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