svn commit: r1858432 - in /ofbiz/ofbiz-framework/trunk/applications/content: servicedef/services.xml widget/forum/BlogForms.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1858432 - in /ofbiz/ofbiz-framework/trunk/applications/content: servicedef/services.xml widget/forum/BlogForms.xml

jacopoc
Author: jacopoc
Date: Tue Apr 30 14:25:13 2019
New Revision: 1858432

URL: http://svn.apache.org/viewvc?rev=1858432&view=rev
Log:
[Fixed]: Added permission checks to three blog/forum services; improved the
configuration for the "add article forum" form (the source tab is not needed in
the ecommerce application).

Modified:
    ofbiz/ofbiz-framework/trunk/applications/content/servicedef/services.xml
    ofbiz/ofbiz-framework/trunk/applications/content/widget/forum/BlogForms.xml

Modified: ofbiz/ofbiz-framework/trunk/applications/content/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/content/servicedef/services.xml?rev=1858432&r1=1858431&r2=1858432&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/content/servicedef/services.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/content/servicedef/services.xml Tue Apr 30 14:25:13 2019
@@ -478,6 +478,7 @@
     <service name="createArticleContent" engine="simple" transaction-timeout="300" auth="true"
             location="component://content/minilang/content/ContentServices.xml" invoke="createArticleContent">
         <description>Creates content records for a blog entry</description>
+        <permission-service service-name="genericContentPermission" main-action="CREATE"/>
         <implements service="createContentFromUploadedFile" optional="true"/>
         <implements service="createTextContent" optional="true"/>
         <attribute name="contentIdFrom" type="String" mode="IN" optional="false">
@@ -1080,6 +1081,7 @@
     <service name="createBlogEntry" engine="simple" auth="true"
         location="component://content/minilang/blog/BlogServices.xml" invoke="createBlogEntry">
         <description>Creates content records for a blog entry</description>
+        <permission-service service-name="genericContentPermission" main-action="CREATE"/>
         <implements service="uploadFileInterface" optional="true"/>
         <attribute name="blogContentId" type="String" mode="INOUT" optional="false">
             <type-validate>
@@ -1097,6 +1099,7 @@
     <service name="updateBlogEntry" engine="simple" auth="true"
         location="component://content/minilang/blog/BlogServices.xml" invoke="updateBlogEntry">
         <description>Updates content records for a blog entry</description>
+        <permission-service service-name="genericContentPermission" main-action="CREATE"/>
         <implements service="uploadFileInterface" optional="true"/>
         <attribute name="blogContentId" type="String" mode="INOUT" optional="false">
             <type-validate>

Modified: ofbiz/ofbiz-framework/trunk/applications/content/widget/forum/BlogForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/content/widget/forum/BlogForms.xml?rev=1858432&r1=1858431&r2=1858432&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/content/widget/forum/BlogForms.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/content/widget/forum/BlogForms.xml Tue Apr 30 14:25:13 2019
@@ -71,7 +71,7 @@ under the License.
         <field name="contentName" title="${uiLabelMap.ContentArticleName}"><text size="40"/></field>
         <field name="description"><textarea cols="60" rows="2"/></field>
         <field name="summaryData" title="${uiLabelMap.ContentSummary}" widget-style="inputBox"><textarea cols="60" rows="4"/></field>
-        <field name="articleData" title="${uiLabelMap.ContentBlogArticle}" widget-style="inputBox"><textarea cols="100" rows="20" visual-editor-enable="true"/></field>
+        <field name="articleData" title="${uiLabelMap.ContentBlogArticle}" widget-style="inputBox"><textarea cols="100" rows="20" visual-editor-enable="false"/></field>
         <field name="uploadedFile" title="${uiLabelMap.ContentImage}"><file size="25"/></field>
         <field name="templateDataResourceId" title="${uiLabelMap.ContentTemplate}">
             <drop-down>