From 331f4939eb8f983b5b85663d7549e604ef485b9a Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sat, 1 Feb 2014 11:03:52 -0800 Subject: 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. --- src/com/p4square/grow/frontend/TrainingPageResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/p4square/grow/frontend/TrainingPageResource.java') 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; -- cgit v1.2.3