From c66d7849cc24d59122531e5f89340c2bf5bc8f37 Mon Sep 17 00:00:00 2001
From: Fabien Morin <fabien@nexedi.com>
Date: Wed, 3 Nov 2010 08:46:58 +0000
Subject: [PATCH] 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
---
 .../WebSection_viewBlogFrontPage/add_new_article.xml            | 2 +-
 bt5/erp5_web_blog/bt/revision                                   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_web_blog/SkinTemplateItem/portal_skins/erp5_web_blog/WebSection_viewBlogFrontPage/add_new_article.xml b/bt5/erp5_web_blog/SkinTemplateItem/portal_skins/erp5_web_blog/WebSection_viewBlogFrontPage/add_new_article.xml
index 4572dcfdac..494e4d2c4d 100644
--- a/bt5/erp5_web_blog/SkinTemplateItem/portal_skins/erp5_web_blog/WebSection_viewBlogFrontPage/add_new_article.xml
+++ b/bt5/erp5_web_blog/SkinTemplateItem/portal_skins/erp5_web_blog/WebSection_viewBlogFrontPage/add_new_article.xml
@@ -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>
diff --git a/bt5/erp5_web_blog/bt/revision b/bt5/erp5_web_blog/bt/revision
index e77a96349c..0aeb548544 100644
--- a/bt5/erp5_web_blog/bt/revision
+++ b/bt5/erp5_web_blog/bt/revision
@@ -1 +1 @@
-73
\ No newline at end of file
+74
\ No newline at end of file
-- 
2.30.9