Author: hansbak
Date: Fri Jun 22 05:47:20 2012
New Revision: 1352774

URL: http://svn.apache.org/viewvc?rev=1352774&view=rev
Log:
corrected coding error in last commit spotted by Jacopo

Modified:
    
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java

Modified: 
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java?rev=1352774&r1=1352773&r2=1352774&view=diff
==============================================================================
--- 
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java
 (original)
+++ 
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java
 Fri Jun 22 05:47:20 2012
@@ -3130,7 +3130,7 @@ public class PaymentGatewayServices {
         Delegator delegator = dctx.getDelegator();
         Security security = dctx.getSecurity();
         // security check
-        if (!security.hasEntityPermission("MANUAL", "_PAYMENT", userLogin) && 
!security.hasEntityPermission("MANUAL", "_PAYMENT", userLogin)) {
+        if (!security.hasEntityPermission("MANUAL", "_PAYMENT", userLogin) && 
!security.hasEntityPermission("ACCOUNTING", "_ADMIN", userLogin)) {
             Debug.logWarning("**** Security [" + (new Date()).toString() + "]: 
" + userLogin.get("userLoginId") + " attempt to run manual payment 
transaction!", module);
             return ServiceUtil.returnError(UtilProperties.getMessage(resource, 
                     "AccountingPaymentTransactionNotAuthorized", locale));


Reply via email to