svn commit: r605018 - in /ofbiz/trunk/applications/accounting: script/org/ofbiz/accounting/ledger/AcctgTransServices.xml servicedef/services_ledger.xml

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

svn commit: r605018 - in /ofbiz/trunk/applications/accounting: script/org/ofbiz/accounting/ledger/AcctgTransServices.xml servicedef/services_ledger.xml

jleroux@apache.org
Author: jleroux
Date: Mon Dec 17 14:10:39 2007
New Revision: 605018

URL: http://svn.apache.org/viewvc?rev=605018&view=rev
Log:
Replaced permission checking (check-permission) in simple method by permission-service in calling service.

Modified:
    ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/AcctgTransServices.xml
    ofbiz/trunk/applications/accounting/servicedef/services_ledger.xml

Modified: ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/AcctgTransServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/AcctgTransServices.xml?rev=605018&r1=605017&r2=605018&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/AcctgTransServices.xml (original)
+++ ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/AcctgTransServices.xml Mon Dec 17 14:10:39 2007
@@ -97,10 +97,7 @@
     </simple-method>
 
     <!-- AcctgTrans Trial Balance and Post routines -->
-    <simple-method method-name="calculateAcctgTransTrialBalance" short-description="Calculate Trial Balance for a AcctgTrans">
-        <check-permission permission="ACCTG" action="_ATX_CREATE"><fail-message message="Security Error: to run calculateAcctgTransTrialBalance you must have the ACCTG_ATX_CREATE or ACCTG_ATX_ADMIN permission"/></check-permission>
-        <check-errors/>
-      
+    <simple-method method-name="calculateAcctgTransTrialBalance" short-description="Calculate Trial Balance for a AcctgTrans">      
         <property-to-field resource="arithmetic" property="ledger.decimals" field-name="ledgerDecimals"/>
         <property-to-field resource="arithmetic" property="ledger.rounding" field-name="roundingMode"/>
 

Modified: ofbiz/trunk/applications/accounting/servicedef/services_ledger.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/servicedef/services_ledger.xml?rev=605018&r1=605017&r2=605018&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/servicedef/services_ledger.xml (original)
+++ ofbiz/trunk/applications/accounting/servicedef/services_ledger.xml Mon Dec 17 14:10:39 2007
@@ -264,6 +264,7 @@
     <service name="calculateAcctgTransTrialBalance" default-entity-name="AcctgTrans" engine="simple"
             location="org/ofbiz/accounting/ledger/AcctgTransServices.xml" invoke="calculateAcctgTransTrialBalance" auth="true">
         <description>Calculate Trial Balance for a AcctgTrans</description>
+        <permission-service service-name="acctgTransactionPermissionCheck" main-action="CREATE"/>
         <auto-attributes include="pk" mode="IN" optional="false"/>
         <attribute name="debitTotal" type="BigDecimal" mode="OUT" optional="false"/>
         <attribute name="creditTotal" type="BigDecimal" mode="OUT" optional="false"/>