Commit 3c14caa1 authored by Rafael Monnerat's avatar Rafael Monnerat

Fixed potential bug of Unauthorized. Thanks to Jerome.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22239 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4dc78702
...@@ -93,11 +93,7 @@ ...@@ -93,11 +93,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <key> <string>text</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string>python: here.hasData() and portal.Base_checkPermission(\'document_module\', \'Add portal content\')</string> </value>
python: here.hasData() and (len(here.document_module.getVisibleAllowedContentTypeList()) > 1)
]]></string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
275 276
\ 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