Author: lektran
Date: Tue Mar 27 00:04:36 2007
New Revision: 522794

URL: http://svn.apache.org/viewvc?view=rev&rev=522794
Log:
Patch from Anil Patel, fixes a recent bug related to party role services 
permission checks
OFBIZ-848

Modified:
    
ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml

Modified: 
ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml?view=diff&rev=522794&r1=522793&r2=522794
==============================================================================
--- 
ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml 
(original)
+++ 
ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml 
Tue Mar 27 00:04:36 2007
@@ -25,6 +25,7 @@
     <!-- create PartyRole -->
     <simple-method method-name="createPartyRole" short-description="Create 
Party Role">
         <check-permission permission="PARTYMGR" action="_CREATE">
+            <accept-userlogin-party/>
             <fail-property resource="PartyUiLabels" 
property="PartyCreatePartyRolePermissionError"/>
         </check-permission>
         <check-errors/>
@@ -40,7 +41,10 @@
     </simple-method>
 
     <simple-method method-name="deletePartyRole" short-description="Delete a  
PartyRole">
-        <check-permission permission="PARTYMGR" 
action="_DELETE"><fail-property resource="PartyUiLabels" 
property="PartyDeletePartyRolePermissionError"/></check-permission>
+        <check-permission permission="PARTYMGR" action="_DELETE">
+            <accept-userlogin-party/>
+            <fail-property resource="PartyUiLabels" 
property="PartyDeletePartyRolePermissionError"/>
+        </check-permission>
         <check-errors/>
         <entity-one entity-name="PartyRole" value-name="partyRole"/>
         <remove-value value-name="partyRole"/>


Reply via email to