From c0025d8c70efb2875af704e8b720ee6eebf3fd3f Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sun, 10 Mar 2013 21:51:14 -0500 Subject: [PATCH] IDEMPIERE-716 can't use new role when "User Level" of the role is "system" #resolve --- org.adempiere.base/src/org/compiere/util/Login.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/util/Login.java b/org.adempiere.base/src/org/compiere/util/Login.java index c0c83fd5e0..5d7a18abad 100644 --- a/org.adempiere.base/src/org/compiere/util/Login.java +++ b/org.adempiere.base/src/org/compiere/util/Login.java @@ -869,7 +869,7 @@ public class Login if (!rs.next()) { // No Warning for System - if (AD_Role_ID != 0) + if (AD_Client_ID != 0) retValue = "NoValidAcctInfo"; } else @@ -965,8 +965,6 @@ public class Login rs = pstmt.executeQuery(); while (rs.next()) loadDefault (rs.getString(1), rs.getString(2)); - DB.close(rs, pstmt); - rs = null; pstmt = null; } catch (SQLException e) {