From 33fa668905e8882c656d5dfe60b590e8ec306a66 Mon Sep 17 00:00:00 2001 From: Daniel Gerhardt <daniel.gerhardt@mni.thm.de> Date: Thu, 17 Jul 2014 14:59:19 +0200 Subject: [PATCH] Revert "Disabled broken LMS code which is not working because of a missing view" This reverts commit 8c8412bb54b23fb080de0e4ccf5ba2d5a1495897. This commit is no longer needed since the missing view has been reimplemented. --- .../java/de/thm/arsnova/services/SessionService.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/main/java/de/thm/arsnova/services/SessionService.java b/src/main/java/de/thm/arsnova/services/SessionService.java index 65d45430..91e39e99 100644 --- a/src/main/java/de/thm/arsnova/services/SessionService.java +++ b/src/main/java/de/thm/arsnova/services/SessionService.java @@ -130,13 +130,11 @@ public class SessionService implements ISessionService { @Override public final List<Session> getMySessions(final User user) { List<Session> mySessions = databaseDao.getMySessions(user); - if (true /*connectorClient == null*/) { + if (connectorClient == null) { return mySessions; } - /* FIXME: Database view is missing (setuptool) so code below has been disabled */ - - final List<Session> courseSessions = databaseDao.getCourseSessions( + List<Session> courseSessions = databaseDao.getCourseSessions( connectorClient.getCourses(user.getUsername()).getCourse() ); @@ -223,11 +221,6 @@ public class SessionService implements ISessionService { @Override public int countSessions(List<Course> courses) { - if (true) { - /* FIXME: Database view is missing (setuptool) so code below has been disabled */ - return 0; - } - List<Session> sessions = databaseDao.getCourseSessions(courses); if (sessions == null) { return 0; -- GitLab