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 @@ ...@@ -87,7 +87,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -21,7 +21,9 @@ ...@@ -21,7 +21,9 @@
</item> </item>
<item> <item>
<key> <string>condition</string> </key> <key> <string>condition</string> </key>
<value> <string></string> </value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
...@@ -74,4 +76,20 @@ ...@@ -74,4 +76,20 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </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> </ZopeData>
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -93,7 +93,7 @@ string:${portal_url}/accounting_module/AccountingTransactionModule_viewGroupingF ...@@ -93,7 +93,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.restrictedTraverse(\'accounting_module\', None) is not None</string> </value> <value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -93,7 +93,7 @@ string:${portal_url}/accounting_module/AccountingTransactionModule_viewGroupingF ...@@ -93,7 +93,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.restrictedTraverse(\'accounting_module\', None) is not None</string> </value> <value> <string>python:portal.Base_checkPermission(\'accounting_module\', \'View\')</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -21,7 +21,9 @@ ...@@ -21,7 +21,9 @@
</item> </item>
<item> <item>
<key> <string>condition</string> </key> <key> <string>condition</string> </key>
<value> <string></string> </value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
...@@ -74,4 +76,20 @@ ...@@ -74,4 +76,20 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </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> </ZopeData>
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
808 809
\ No newline at end of file \ 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