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
Pipeline #12626 passed with stage
in 0 seconds
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<key> <string>permissions</string> </key> <key> <string>permissions</string> </key>
<value> <value>
<tuple> <tuple>
<string>View</string> <string>Add portal content</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -94,7 +94,7 @@ string:${portal_url}/accounting_module/AccountingTransactionModule_viewGroupingF ...@@ -94,7 +94,7 @@ string:${portal_url}/accounting_module/AccountingTransactionModule_viewGroupingF
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -94,7 +94,7 @@ string:${portal_url}/accounting_module/AccountingTransactionModule_viewGroupingF ...@@ -94,7 +94,7 @@ string:${portal_url}/accounting_module/AccountingTransactionModule_viewGroupingF
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </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