Author: jonesde
Date: Mon Oct 29 20:21:40 2007
New Revision: 589948
URL:
http://svn.apache.org/viewvc?rev=589948&view=revLog:
Fixed little bug where if the partyId is the same as that in the UserLogin the method was not setting the hasPermission result, whichn then it would not return a hasPermission value, resulting in an error in all such cases
Modified:
ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyPermissionServices.xml
Modified: ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyPermissionServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyPermissionServices.xml?rev=589948&r1=589947&r2=589948&view=diff==============================================================================
--- ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyPermissionServices.xml (original)
+++ ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyPermissionServices.xml Mon Oct 29 20:21:40 2007
@@ -113,10 +113,14 @@
<if-empty map-name="parameters" field-name="partyId">
<set field="parameters.partyId" from-field="userLogin.partyId"/>
</if-empty>
- <if-compare-field field-name="partyId" map-name="parameters" to-map-name="userLogin" operator="not-equals">
- <set field="altPermission" value="PARTYMGR_PCM"/>
- <call-simple-method method-name="basePermissionCheck"/>
+ <if-compare-field field-name="partyId" map-name="parameters" to-map-name="userLogin" operator="equals">
+ <set field="hasPermission" type="Boolean" value="true"/>
+ <field-to-result field-name="hasPermission"/>
+
+ <else>
+ <set field="altPermission" value="PARTYMGR_PCM"/>
+ <call-simple-method method-name="basePermissionCheck"/>
+ </else>
</if-compare-field>
</simple-method>
-
</simple-methods>