svn commit: r575632 - in /ofbiz/trunk/applications/workeffort: script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml servicedef/services.xml

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

svn commit: r575632 - in /ofbiz/trunk/applications/workeffort: script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml servicedef/services.xml

jacopoc
Author: jacopoc
Date: Fri Sep 14 04:37:25 2007
New Revision: 575632

URL: http://svn.apache.org/viewvc?rev=575632&view=rev
Log:
Updated contact mech services to use new permission service.

Modified:
    ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml
    ofbiz/trunk/applications/workeffort/servicedef/services.xml

Modified: ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml?rev=575632&r1=575631&r2=575632&view=diff
==============================================================================
--- ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml (original)
+++ ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml Fri Sep 14 04:37:25 2007
@@ -274,8 +274,6 @@
 
     <!-- Create a WorkEffortContactMech -->
     <simple-method method-name="createWorkEffortContactMech" short-description="Create a WorkEffortContactMech">
-        <check-permission permission="WORKEFFORTMGR" action="_CREATE"><fail-message message="You do not have permission to perform this operation for this work effort."/></check-permission>
-        <check-errors/>
         <make-value value-name="newValue" entity-name="WorkEffortContactMech"/>
         <if-empty map-name="parameters" field-name="contactMechId">
             <if-not-empty field-name="parameters.partyId">
@@ -307,8 +305,6 @@
     </simple-method>
     
     <simple-method method-name="updateWorkEffortContactMech" short-description="Update a WorkEffortContactMech">
-        <check-permission permission="WORKEFFORTMGR" action="_UPDATE"><fail-message message="You do not have permission to perform this operation for this work effort."/></check-permission>
-        <check-errors/>
         <make-value entity-name="WorkEffortContactMech" value-name="newWorkEffortContactMech"/>
         <!-- Find old value -->
         <entity-one entity-name="WorkEffortContactMech" value-name="workEffortContactMech"/>
@@ -346,8 +342,6 @@
     </simple-method>    
     
     <simple-method method-name="deleteWorkEffortContactMech" short-description="Delete a WorkEffortContactMech">
-        <check-permission permission="WORKEFFORTMGR" action="_DELETE"><fail-message message="You do not have permission to perform this operation for this work effort."/></check-permission>
-        <check-errors/>
         <!-- Find old value -->
         <entity-one entity-name="WorkEffortContactMech" value-name="workEffortContactMech"/>
         <if-empty field-name="workEffortContactMech">

Modified: ofbiz/trunk/applications/workeffort/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/servicedef/services.xml?rev=575632&r1=575631&r2=575632&view=diff
==============================================================================
--- ofbiz/trunk/applications/workeffort/servicedef/services.xml (original)
+++ ofbiz/trunk/applications/workeffort/servicedef/services.xml Fri Sep 14 04:37:25 2007
@@ -576,6 +576,7 @@
     <service name="createWorkEffortContactMech" engine="simple"
             location="org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createWorkEffortContactMech" auth="true">
         <description>Create WorkEffortContactMech; if contactMechId is not provided, a new contact mech is created (if partyId is set then the new contact mech is also associated to the party)</description>
+        <permission-service service-name="workEffortGenericPermission" main-action="CREATE"/>
         <auto-attributes entity-name="WorkEffortContactMech" mode="IN" include="nonpk" optional="true"/>
         <auto-attributes entity-name="PartyContactMech" include="all" mode="IN" optional="true"/>
         <attribute name="workEffortId" mode="IN" type="String" optional="false"></attribute>
@@ -587,6 +588,7 @@
     <service name="deleteWorkEffortContactMech" engine="simple" default-entity-name="WorkEffortContactMech"
             location="org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="deleteWorkEffortContactMech" auth="true">
         <description>Delete WorkEffortContactMech</description>
+        <permission-service service-name="workEffortGenericPermission" main-action="DELETE"/>
         <auto-attributes mode="IN" include="pk" optional="false"/>
     </service>
 </services>