Commit 2e52c768 authored by Jérome Perrin's avatar Jérome Perrin

actions related to accounting for non accouting portal type should be visible...

actions related to accounting for non accouting portal type should be visible only if the user can *View* accounting module, not access.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24650 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b9e688c8
......@@ -87,7 +87,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value>
<value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -87,7 +87,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value>
<value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -21,7 +21,9 @@
</item>
<item>
<key> <string>condition</string> </key>
<value> <string></string> </value>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>description</string> </key>
......@@ -74,4 +76,20 @@
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="Expression" module="Products.CMFCore.Expression"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -87,7 +87,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value>
<value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -87,7 +87,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value>
<value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -93,7 +93,7 @@ string:${portal_url}/accounting_module/AccountingTransactionModule_viewGroupingF
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value>
<value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -87,7 +87,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value>
<value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -87,7 +87,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value>
<value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -93,7 +93,7 @@ string:${portal_url}/accounting_module/AccountingTransactionModule_viewGroupingF
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value>
<value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -21,7 +21,9 @@
</item>
<item>
<key> <string>condition</string> </key>
<value> <string></string> </value>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>description</string> </key>
......@@ -74,4 +76,20 @@
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="Expression" module="Products.CMFCore.Expression"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -87,7 +87,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value>
<value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -87,7 +87,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:portal.restrictedTraverse(\'accounting_module\', None) is not None</string> </value>
<value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
</item>
</dictionary>
</pickle>
......
808
\ No newline at end of file
809
\ No newline at end of file
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