diff --git a/src/main/java/ai/elimu/web/content/MainContentController.java b/src/main/java/ai/elimu/web/content/MainContentController.java index e632b9b2d..5646a421a 100644 --- a/src/main/java/ai/elimu/web/content/MainContentController.java +++ b/src/main/java/ai/elimu/web/content/MainContentController.java @@ -5,8 +5,6 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; -import org.apache.commons.lang.StringUtils; - import org.apache.logging.log4j.Logger; import ai.elimu.dao.AudioDao; import ai.elimu.dao.ContributorDao; @@ -23,8 +21,6 @@ import ai.elimu.dao.WordContributionEventDao; import ai.elimu.dao.WordDao; import ai.elimu.model.contributor.Contributor; -import ai.elimu.model.v2.enums.Environment; -import ai.elimu.web.context.EnvironmentContextLoaderListener; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -98,16 +94,6 @@ public String handleRequest( Model model) { logger.info("handleRequest"); - // Check if the Contributor has not yet provided all required details - Contributor contributor = (Contributor) session.getAttribute("contributor"); - if (StringUtils.isBlank(contributor.getEmail())) { - return "redirect:/content/contributor/add-email"; - } else if (StringUtils.isBlank(contributor.getFirstName()) || StringUtils.isBlank(contributor.getLastName())) { - return "redirect:/content/contributor/edit-name"; - } else if (StringUtils.isBlank(contributor.getMotivation()) && (EnvironmentContextLoaderListener.env != Environment.DEV)) { - return "redirect:/content/contributor/edit-motivation"; - } - model.addAttribute("letterCount", letterDao.readCount()); model.addAttribute("soundCount", soundDao.readCount()); model.addAttribute("letterSoundCount", letterSoundDao.readCount());