From bac1e766291662af87235c0d48deffd87cb421c0 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Mon, 5 Mar 2007 17:36:30 +0000 Subject: [PATCH] reverted BF [ 1673731 ] On login, show only orgs with write access according with team comments --- dbPort/src/org/compiere/util/Login.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/dbPort/src/org/compiere/util/Login.java b/dbPort/src/org/compiere/util/Login.java index c934d6f756..b812d80fd7 100644 --- a/dbPort/src/org/compiere/util/Login.java +++ b/dbPort/src/org/compiere/util/Login.java @@ -28,11 +28,7 @@ import org.compiere.model.*; /** - * Login Manager - *

Change log - *

+ * Login Manager * * @author Jorg Janke * @version $Id: Login.java,v 1.6 2006/10/02 05:19:06 jjanke Exp $ @@ -473,9 +469,9 @@ public class Login + " AND o.IsActive='Y' 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 " - + "WHERE ra.AD_Role_ID=r.AD_Role_ID AND ra.IsActive='Y' AND ra.IsReadOnly='N')) " + + "WHERE ra.AD_Role_ID=r.AD_Role_ID AND ra.IsActive='Y')) " + "OR (r.IsUseUserOrgAccess='Y' AND o.AD_Org_ID IN (SELECT AD_Org_ID FROM AD_User_OrgAccess ua " - + "WHERE ua.AD_User_ID=? AND ua.IsActive='Y' AND ua.IsReadOnly='N'))" // #3 + + "WHERE ua.AD_User_ID=? AND ua.IsActive='Y'))" // #3 + ") " + "ORDER BY o.Name"; //