You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Deepak Dixit (JIRA)" <ji...@apache.org> on 2017/07/31 06:06:00 UTC

[jira] [Commented] (OFBIZ-9543) Removing Assignment between UserLogin and SecurtyGroup does not work

    [ https://issues.apache.org/jira/browse/OFBIZ-9543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16106842#comment-16106842 ] 

Deepak Dixit commented on OFBIZ-9543:
-------------------------------------

Hi S. Yazied,

I think its working fine, it set the thruDate in UserLoginSecurityGroup entity to expire user login and security group association.

As we have fromDate and thruDate in UserLoginSecurityGroup entity so we used to set thruDate instead of deleting record (to retain history)

> Removing Assignment between UserLogin and SecurtyGroup does not work
> --------------------------------------------------------------------
>
>                 Key: OFBIZ-9543
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9543
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: 16.11.03
>            Reporter: S. Yazied
>            Assignee: Deepak Dixit
>
> Removing Assignment between UserLogin and SecurtyGroup does not work, I solved it like this:
> in file framework/common/webcommon/WEB-INF/security-controller.xml
>     <request-map uri="userLogin_removeUserLoginFromSecurityGroup">
>         <security https="true" auth="true"/>
>         <event type="service" path="" invoke="*updateUserLoginToSecurityGroup*"/>
>         <response name="success" type="view" value="EditUserLoginSecurityGroups"/>
>         <response name="error" type="view" value="EditUserLoginSecurityGroups"/>
>     </request-map>
> should be:
>     <request-map uri="userLogin_removeUserLoginFromSecurityGroup">
>         <security https="true" auth="true"/>
>         <event type="service" path="" invoke="*removeUserLoginToSecurityGroup*"/>
>         <response name="success" type="view" value="EditUserLoginSecurityGroups"/>
>         <response name="error" type="view" value="EditUserLoginSecurityGroups"/>
>     </request-map>



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)