IDEMPIERE-716 can't use new role when "User Level" of the role is "system" #resolve

This commit is contained in:
Carlos Ruiz 2013-03-10 21:51:14 -05:00
parent ba8cc7463f
commit c0025d8c70
1 changed files with 1 additions and 3 deletions

View File

@ -869,7 +869,7 @@ public class Login
if (!rs.next()) if (!rs.next())
{ {
// No Warning for System // No Warning for System
if (AD_Role_ID != 0) if (AD_Client_ID != 0)
retValue = "NoValidAcctInfo"; retValue = "NoValidAcctInfo";
} }
else else
@ -965,8 +965,6 @@ public class Login
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
while (rs.next()) while (rs.next())
loadDefault (rs.getString(1), rs.getString(2)); loadDefault (rs.getString(1), rs.getString(2));
DB.close(rs, pstmt);
rs = null; pstmt = null;
} }
catch (SQLException e) catch (SQLException e)
{ {