getAccount does not return DemoUser, but KorApUser.
diff --git a/src/main/java/de/ids_mannheim/korap/handlers/EntityDao.java b/src/main/java/de/ids_mannheim/korap/handlers/EntityDao.java
index 0d00512..ac16556 100644
--- a/src/main/java/de/ids_mannheim/korap/handlers/EntityDao.java
+++ b/src/main/java/de/ids_mannheim/korap/handlers/EntityDao.java
@@ -70,9 +70,6 @@
}
catch (EmptyResultDataAccessException ae) {
jlog.warn("No user found for name '{}'", username);
- // if no username, so return a DemoUser , FB.
- // return User.UserFactory.getDemoUser();
- return UserFactory.getDemoUser();
}
catch (DataAccessException e) {
jlog.warn("Could not retrieve user for name: " + username, e);