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:
Carlos Ruiz 2013-03-15 13:16:13 -05:00
parent a2fd9d901b
commit c5f92ffdf7
1 changed files with 1 additions and 0 deletions

View File

@ -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"