You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2007/04/19 21:00:57 UTC

svn commit: r530519 - /ofbiz/trunk/applications/ecommerce/widget/blog/BlogScreens.xml

Author: jaz
Date: Thu Apr 19 12:00:56 2007
New Revision: 530519

URL: http://svn.apache.org/viewvc?view=rev&rev=530519
Log:
fixed permission issue

Modified:
    ofbiz/trunk/applications/ecommerce/widget/blog/BlogScreens.xml

Modified: ofbiz/trunk/applications/ecommerce/widget/blog/BlogScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/ecommerce/widget/blog/BlogScreens.xml?view=diff&rev=530519&r1=530518&r2=530519
==============================================================================
--- ofbiz/trunk/applications/ecommerce/widget/blog/BlogScreens.xml (original)
+++ ofbiz/trunk/applications/ecommerce/widget/blog/BlogScreens.xml Thu Apr 19 12:00:56 2007
@@ -606,19 +606,16 @@
                         <set field="useRequestParameters" value="false" type="Boolean"/>
 
                         <!-- used for permission check -->
-                        <set field="contentPurposeTypeId" value="RESPONSE"/>
-                        <set field="contentOperationId" value="CONTENT_CREATE"/>
-                        <set field="ownerContentId" from-field="content.ownerContentId"/>
+                        <set field="contentPurposeTypeId" value="ARTICLE"/>
+                        <set field="contentOperationId" value="CONTENT_RESPOND"/>
+                        <set field="ownerContentId" from-field="content.contentId"/>
                     </actions>
                     <widgets>
                         <container style="bloghr">
                             <label text="Add Comment [${content.contentId}]: " style="blogtitle"/>
                             <section>
-                                <condition>
-                                    <and>
-                                        <if-compare field-name="content.statusId" operator="equals" value="CTNT_PUBLISHED"/>
-                                        <if-service-permission service-name="genericContentPermission" main-action="CREATE"/>                                                                                
-                                    </and>
+                                <condition>                                                                        
+                                    <if-service-permission service-name="genericContentPermission" main-action="CREATE"/>
                                 </condition>
 
                                 <actions>