Commit 328714ca authored by Rafael Monnerat's avatar Rafael Monnerat

Prevent raise error when you have no permission to View Document Module....

Prevent raise error when you have no permission to View Document Module. gettattr should not be used as conditions for these cases.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23096 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3ab22185
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <key> <string>text</string> </key>
<value> <string>python:getattr(portal.portal_skins, \'erp5_dms\', None) is not None</string> </value> <value> <string>python: portal.Base_checkPermission(\'document_module\', \'View\')</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <key> <string>text</string> </key>
<value> <string>python:getattr(portal.portal_skins, \'erp5_dms\', None) is not None</string> </value> <value> <string>python: portal.Base_checkPermission(\'document_module\', \'View\')</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <key> <string>text</string> </key>
<value> <string>python:getattr(portal.portal_skins, \'erp5_dms\', None) is not None</string> </value> <value> <string>python: portal.Base_checkPermission(\'document_module\', \'View\')</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <key> <string>text</string> </key>
<value> <string>python:getattr(portal.portal_skins, \'erp5_dms\', None) is not None</string> </value> <value> <string>python: portal.Base_checkPermission(\'document_module\', \'View\')</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
291 292
\ 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