From 6a4924d16968ebd5e4ed8bfbe3d06985fff7bea9 Mon Sep 17 00:00:00 2001 From: anhefti Date: Thu, 20 Oct 2022 08:40:43 +0200 Subject: [PATCH] fixed init admin for existing but deactivated admin account --- .../sebserver/webservice/servicelayer/dao/impl/UserDAOImpl.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/UserDAOImpl.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/UserDAOImpl.java index fb0a9f82..63586188 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/UserDAOImpl.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/UserDAOImpl.java @@ -135,8 +135,6 @@ public class UserDAOImpl implements UserDAO { this.userRecordMapper .selectByExample() .where(UserRecordDynamicSqlSupport.username, isEqualTo(username)) - .and(UserRecordDynamicSqlSupport.active, - isEqualTo(BooleanUtils.toInteger(true))) .build() .execute()) .flatMap(this::sebServerUserFromRecord);