Commit 27ac35c6 authored by Jérome Perrin's avatar Jérome Perrin

accounting: restrict Grouping action to user who can Add to accounting module

Users with only view permissions in accounting should not be offered to use
the grouping reference fast inputs, because grouping transactions is a kind
of modification.
parent 36cbf7bd
......@@ -48,7 +48,7 @@
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>View</string>
<string>Add portal content</string>
</tuple>
</value>
</item>
......
......@@ -94,7 +94,7 @@ string:${portal_url}/accounting_module/AccountingTransactionModule_viewGroupingF
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
<value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'Add portal content\')</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -94,7 +94,7 @@ string:${portal_url}/accounting_module/AccountingTransactionModule_viewGroupingF
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
<value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'Add portal content\')</string> </value>
</item>
</dictionary>
</pickle>
......
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