svn commit: r1768196 - in /ofbiz/trunk/applications/accounting: minilang/permissions/PermissionServices.xml servicedef/services_perm.xml

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

svn commit: r1768196 - in /ofbiz/trunk/applications/accounting: minilang/permissions/PermissionServices.xml servicedef/services_perm.xml

Deepak Dixit-5
Author: deepak
Date: Sat Nov  5 11:37:42 2016
New Revision: 1768196

URL: http://svn.apache.org/viewvc?rev=1768196&view=rev
Log:
Improved: Add accounting permission service validating while setting payment status or void payment
(OFBIZ-8738)

Modified:
    ofbiz/trunk/applications/accounting/minilang/permissions/PermissionServices.xml
    ofbiz/trunk/applications/accounting/servicedef/services_perm.xml

Modified: ofbiz/trunk/applications/accounting/minilang/permissions/PermissionServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/minilang/permissions/PermissionServices.xml?rev=1768196&r1=1768195&r2=1768196&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/minilang/permissions/PermissionServices.xml (original)
+++ ofbiz/trunk/applications/accounting/minilang/permissions/PermissionServices.xml Sat Nov  5 11:37:42 2016
@@ -109,4 +109,9 @@ under the License.
     <simple-method method-name="acctgBillingAcctCheck" short-description="Accounting billing account permission logic">
         <call-simple-method method-name="basePermissionCheck"/>
     </simple-method>
+    
+    <!-- Returns hasPermission=true if user has one of the base ACCOUNTING/ACCOUNTING_ROLE CRUD+ADMIN permissions -->
+    <simple-method method-name="acctgPaymentPermissionCheck" short-description="Accounting Permission logic">
+        <call-simple-method method-name="basePlusRolePermissionCheck"/>
+    </simple-method>
 </simple-methods>

Modified: ofbiz/trunk/applications/accounting/servicedef/services_perm.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/servicedef/services_perm.xml?rev=1768196&r1=1768195&r2=1768196&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/servicedef/services_perm.xml (original)
+++ ofbiz/trunk/applications/accounting/servicedef/services_perm.xml Sat Nov  5 11:37:42 2016
@@ -94,4 +94,9 @@ under the License.
         <description>Fixed Asset Permission Checking Logic</description>
         <implements service="permissionInterface"/>
     </service>
+    <service name="acctgPaymentPermissionCheck" engine="simple"
+            location="component://accounting/minilang/permissions/PermissionServices.xml" invoke="acctgPaymentPermissionCheck">
+        <description>Accounting Payment Permission Checking Logic</description>
+        <implements service="permissionInterface"/>
+    </service>
 </services>