diff --git a/back/src/org/kar/karideo/model/User.java b/back/src/org/kar/karideo/model/User.java index 076526b..6bc0555 100644 --- a/back/src/org/kar/karideo/model/User.java +++ b/back/src/org/kar/karideo/model/User.java @@ -49,11 +49,9 @@ public class User { this.lastConnection = rs.getTimestamp(iii++); this.login = rs.getString(iii++); this.email = rs.getString(iii++); - String adminValue = rs.getString(iii++); - System.out.println("Admin value = '" + adminValue + "'"); - this.admin = Boolean.getBoolean(adminValue); - this.blocked = Boolean.getBoolean(rs.getString(iii++)); - this.removed = Boolean.getBoolean(rs.getString(iii++)); + this.admin = "TRUE".equals(rs.getString(iii++)); + this.blocked = "TRUE".equals(rs.getString(iii++)); + this.removed = "TRUE".equals(rs.getString(iii++)); this.avatar = rs.getLong(iii++); if (rs.wasNull()) { this.avatar = null;