You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by de...@apache.org on 2015/08/17 12:53:21 UTC
svn commit: r1696234 - in /ofbiz/trunk:
applications/party/webapp/partymgr/WEB-INF/controller.xml
framework/common/servicedef/services_security.xml
Author: deepak
Date: Mon Aug 17 10:53:20 2015
New Revision: 1696234
URL: http://svn.apache.org/r1696234
Log:
Applied patch from jira issue - OFBIZ-6566 -SecurityGroup doesn't get removed from a Party.
Thanks Pierre Smits for reporting the issue and thanks Neeraj Kumawat for providing the patch for the same.
Modified:
ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
ofbiz/trunk/framework/common/servicedef/services_security.xml
Modified: ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml?rev=1696234&r1=1696233&r2=1696234&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml Mon Aug 17 10:53:20 2015
@@ -1241,7 +1241,7 @@ under the License.
</request-map>
<request-map uri="ProfileRemoveUserLoginFromSecurityGroup">
<security https="true" auth="true"/>
- <event type="service" path="" invoke="updateUserLoginToSecurityGroup"/>
+ <event type="service" path="" invoke="removeUserLoginToSecurityGroup"/>
<response name="success" type="view" value="ProfileEditUserLoginSecurityGroups"/>
<response name="error" type="view" value="ProfileEditUserLoginSecurityGroups"/>
</request-map>
Modified: ofbiz/trunk/framework/common/servicedef/services_security.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/servicedef/services_security.xml?rev=1696234&r1=1696233&r2=1696234&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/servicedef/services_security.xml (original)
+++ ofbiz/trunk/framework/common/servicedef/services_security.xml Mon Aug 17 10:53:20 2015
@@ -83,7 +83,14 @@ under the License.
<attribute name="fromDate" type="Timestamp" mode="IN" optional="false"/>
<attribute name="thruDate" type="Timestamp" mode="IN" optional="true"/>
</service>
-
+ <service name="removeUserLoginToSecurityGroup" engine="entity-auto" invoke="delete" default-entity-name="UserLoginSecurityGroup" auth="true">
+ <description>Remove a UserLogin to SecurityGroup Appl</description>
+ <permission-service service-name="securityPermissionCheck" main-action="DELETE"/>
+ <attribute name="userLoginId" type="String" mode="IN" optional="false"/>
+ <attribute name="groupId" type="String" mode="IN" optional="false"/>
+ <attribute name="fromDate" type="Timestamp" mode="IN" optional="false"/>
+ <attribute name="thruDate" type="Timestamp" mode="IN" optional="true"/>
+ </service>
<!-- ProtectedView to SecurityGroup services -->
<service name="addProtectedViewToSecurityGroup" engine="entity-auto" invoke="create" default-entity-name="ProtectedView" auth="true">
<description>Add a Protected View to a SecurityGroup</description>