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
<dictionary>
<item>
<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>
</dictionary>
</pickle>
......
73
\ No newline at end of file
74
\ 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