IDEMPIERE-600 Use User Org Access in Role didn't work - fix bug found - System is able to login with any GW organization
This commit is contained in:
parent
a2fd9d901b
commit
c5f92ffdf7
|
@ -547,6 +547,7 @@ public class Login
|
|||
+" INNER JOIN AD_Role r on (r.AD_Role_ID=?)"
|
||||
+" INNER JOIN AD_Client c on (c.AD_Client_ID=?)"
|
||||
+" WHERE o.IsActive='Y' "
|
||||
+" AND o.AD_Client_ID IN (0, c.AD_Client_ID)"
|
||||
+" AND o.IsSummary='N'"
|
||||
+" AND (r.IsAccessAllOrgs='Y'"
|
||||
+" OR (r.IsUseUserOrgAccess='N' AND o.AD_Org_ID IN (SELECT AD_Org_ID FROM AD_Role_OrgAccess ra"
|
||||
|
|
Loading…
Reference in New Issue