A modified patch from Bruno Busco "bug when adding new permissions to group" (https://issues.apache.org/jira/browse/OFBIZ-2093) - OFBIZ-2093
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@728266 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+6
-5
@@ -71,10 +71,11 @@ under the License.
|
||||
|
||||
<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>
|
||||
@@ -142,11 +143,11 @@ under the License.
|
||||
<make-value value-name="newEntity" entity-name="ProtectedView"/>
|
||||
<set-pk-fields map-name="parameters" value-name="newEntity"/>
|
||||
<set-nonpk-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.userLoginSecurityGroupByUserLoginId.remove(newEntity); ]]></call-bsh>
|
||||
|
||||
<create-value value-name="newEntity"/>
|
||||
</simple-method>
|
||||
<simple-method method-name="updateProtectedViewToSecurityGroup" short-description="Update ProtectedView to SecurityGroup">
|
||||
<check-permission permission="SECURITY" action="_UPDATE"><fail-message message="Security Error: to run updateProtectedViewToSecurityGroup you must have the SECURITY_UPDATE or SECURITY_ADMIN permission"/></check-permission>
|
||||
|
||||
Reference in New Issue
Block a user