diff --git a/src/main/java/de/thm/arsnova/services/SessionService.java b/src/main/java/de/thm/arsnova/services/SessionService.java index 65d45430074795ff0ac46611feb02f0c32090587..91e39e990f055b77677f594adf0ac0856962764f 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;