Skip to content
Snippets Groups Projects
Commit 282e9b55 authored by Paul-Christian Volkmer's avatar Paul-Christian Volkmer
Browse files

Bugfix: Do not check state of session in DAO

These checks will be done by service and security implementation if needed
parent 5191c77a
Branches
Tags
No related merge requests found
......@@ -95,7 +95,7 @@ public class CouchDBDao implements IDatabaseDao {
@Override
public final Session getSession(final String keyword) {
final Session result = getSessionFromKeyword(keyword);
if (result != null && result.isActive()) {
if (result != null) {
return result;
}
......@@ -1352,7 +1352,7 @@ public class CouchDBDao implements IDatabaseDao {
int progress = 0;
if (!progressValue.isEmpty()) {
if (progressValue.get(0).optJSONArray("value").isArray()) {
JSONArray courseProgress = progressValue.get(0).getJSONArray("value");
final JSONArray courseProgress = progressValue.get(0).getJSONArray("value");
progress = courseProgress.getInt(0) / courseProgress.getInt(1);
} else {
progress = progressValue.get(0).getInt("value");
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment