Commit c66d7849 authored by Fabien Morin's avatar Fabien Morin

check permission on web_page_module instead of context

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39820 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 73ddfe98
...@@ -318,7 +318,7 @@ python:"<a class=\\"button button-submit\\" href=\\"%s/WebSection_viewAddBlogMes ...@@ -318,7 +318,7 @@ python:"<a class=\\"button button-submit\\" href=\\"%s/WebSection_viewAddBlogMes
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python:here.getPortalObject().portal_membership.checkPermission("Add portal content", here)</string> </value> <value> <string>python:here.getPortalObject().portal_membership.checkPermission("Add portal content", here.getPortalObject().getDefaultModule("Web Page"))</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
73 74
\ 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