summaryrefslogtreecommitdiff
path: root/src/com/p4square/grow/frontend/TrainingPageResource.java
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2014-02-01 11:03:52 -0800
committerJesse Morgan <jesse@jesterpm.net>2014-02-01 11:03:52 -0800
commit331f4939eb8f983b5b85663d7549e604ef485b9a (patch)
treecd42a240496d134fb125a08c4bc6735728984f8f /src/com/p4square/grow/frontend/TrainingPageResource.java
parentb9c4dd721747c48f557f05f342a62cdfaec360f1 (diff)
Fixing regression computing required videos.
After refactoring users were required to watch all videos regardless of their assessment score. Also enabling strict video ordering and adding the option magicskip to watch out of order.
Diffstat (limited to 'src/com/p4square/grow/frontend/TrainingPageResource.java')
-rw-r--r--src/com/p4square/grow/frontend/TrainingPageResource.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/p4square/grow/frontend/TrainingPageResource.java b/src/com/p4square/grow/frontend/TrainingPageResource.java
index dc40500..f2a0938 100644
--- a/src/com/p4square/grow/frontend/TrainingPageResource.java
+++ b/src/com/p4square/grow/frontend/TrainingPageResource.java
@@ -119,7 +119,7 @@ public class TrainingPageResource extends FreeMarkerPageResource {
// The user is not allowed to view chapters after his highest completed chapter.
// In this loop we find which chapters are allowed and check if the user tried
// to skip ahead.
- boolean allowUserToSkip = mConfig.getBoolean("allowUserToSkip", true);
+ boolean allowUserToSkip = mConfig.getBoolean("allowUserToSkip", false) || getQueryValue("magicskip") != null;
String defaultChapter = null;
boolean userTriedToSkip = false;
int overallProgress = 0;