svn commit: r728268 - /ofbiz/branches/release4.0/applications/securityext/script/org/ofbiz/securityext/securitygroup/SecurityGroupServices.xml

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

svn commit: r728268 - /ofbiz/branches/release4.0/applications/securityext/script/org/ofbiz/securityext/securitygroup/SecurityGroupServices.xml

jleroux@apache.org
Author: jleroux
Date: Sat Dec 20 03:09:11 2008
New Revision: 728268

URL: http://svn.apache.org/viewvc?rev=728268&view=rev
Log:
A patch from Bruno Busco "bug when adding new permissions to group" (https://issues.apache.org/jira/browse/OFBIZ-2093) - OFBIZ-2093

Modified:
    ofbiz/branches/release4.0/applications/securityext/script/org/ofbiz/securityext/securitygroup/SecurityGroupServices.xml

Modified: ofbiz/branches/release4.0/applications/securityext/script/org/ofbiz/securityext/securitygroup/SecurityGroupServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/securityext/script/org/ofbiz/securityext/securitygroup/SecurityGroupServices.xml?rev=728268&r1=728267&r2=728268&view=diff
==============================================================================
--- ofbiz/branches/release4.0/applications/securityext/script/org/ofbiz/securityext/securitygroup/SecurityGroupServices.xml (original)
+++ ofbiz/branches/release4.0/applications/securityext/script/org/ofbiz/securityext/securitygroup/SecurityGroupServices.xml Sat Dec 20 03:09:11 2008
@@ -71,10 +71,11 @@
 
         <make-value value-name="newEntity" entity-name="SecurityGroupPermission"/>
         <set-pk-fields map-name="parameters" value-name="newEntity"/>
-        <create-value value-name="newEntity"/>
         
         <!-- clear the org.ofbiz.security.Security object's custom cache by newEntity -->
         <call-bsh><![CDATA[ org.ofbiz.security.Security.securityGroupPermissionCache.remove(newEntity); ]]></call-bsh>
+        
+        <create-value value-name="newEntity"/>        
     </simple-method>
     <simple-method method-name="removeSecurityPermissionFromSecurityGroup" short-description="Remove SecurityPermission From SecurityGroup">
         <check-permission permission="SECURITY" action="_DELETE"><fail-message message="Security Error: to run removeSecurityPermissionFromSecurityGroup you must have the SECURITY_DELETE or SECURITY_ADMIN permission"/></check-permission>