svn commit: r1459715 - in /ofbiz/branches/release10.04: ./ applications/order/script/org/ofbiz/order/shoppinglist/ShoppingListServices.xml

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

svn commit: r1459715 - in /ofbiz/branches/release10.04: ./ applications/order/script/org/ofbiz/order/shoppinglist/ShoppingListServices.xml

jleroux@apache.org
Author: jleroux
Date: Fri Mar 22 11:11:40 2013
New Revision: 1459715

URL: http://svn.apache.org/r1459715
Log:
"Applied fix from trunk for revision: 1459220"
------------------------------------------------------------------------
r1459220 | mor | 2013-03-21 11:38:28 +0100 (jeu., 21 mars 2013) | 1 line

Slightly different patch to fix the auto save cart functionality for anonymous user reported by Mirko on OFBIZ-5157.
------------------------------------------------------------------------


Modified:
    ofbiz/branches/release10.04/   (props changed)
    ofbiz/branches/release10.04/applications/order/script/org/ofbiz/order/shoppinglist/ShoppingListServices.xml

Propchange: ofbiz/branches/release10.04/
------------------------------------------------------------------------------
  Merged /ofbiz/trunk:r1459220

Modified: ofbiz/branches/release10.04/applications/order/script/org/ofbiz/order/shoppinglist/ShoppingListServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release10.04/applications/order/script/org/ofbiz/order/shoppinglist/ShoppingListServices.xml?rev=1459715&r1=1459714&r2=1459715&view=diff
==============================================================================
--- ofbiz/branches/release10.04/applications/order/script/org/ofbiz/order/shoppinglist/ShoppingListServices.xml (original)
+++ ofbiz/branches/release10.04/applications/order/script/org/ofbiz/order/shoppinglist/ShoppingListServices.xml Fri Mar 22 11:11:40 2013
@@ -119,7 +119,19 @@ under the License.
         <if-empty field="shoppingListItems">
             <set field="parentMethodName" value="createShoppingListItem"/>
             <set field="permissionAction" value="CREATE"/>
-            <call-simple-method method-name="checkShoppingListItemSecurity"/>
+            <entity-one entity-name="ShoppingList" value-field="shoppingList"/>
+            <if>
+                <condition>
+                    <and>
+                        <not><if-empty field="shoppingList.partyId"/></not>
+                        <not><if-compare-field field="userLogin.partyId" to-field="shoppingList.partyId" operator="equals"/></not>
+                        <not><if-has-permission permission="PARTYMGR" action="_${permissionAction}"/></not>
+                    </and>
+                </condition>
+                <then>
+                    <add-error><fail-property resource="OrderErrorUiLabels" property="OrderSecurityErrorToRunForAnotherParty"/></add-error>
+                </then>
+            </if>
             <check-errors/>
 
             <entity-one entity-name="ShoppingList" value-field="shoppingList"/>