From 45db051f30408977dd9fda645fc985d3b4ff71d1 Mon Sep 17 00:00:00 2001 From: Jason White Date: Sat, 24 Oct 2015 11:45:49 -0500 Subject: [PATCH] removing redundant line, adding hasPlan to special challenge case handling --- .../java/org/owasp/webgoat/lessons/model/LessonInfoModel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webgoat-container/src/main/java/org/owasp/webgoat/lessons/model/LessonInfoModel.java b/webgoat-container/src/main/java/org/owasp/webgoat/lessons/model/LessonInfoModel.java index 7840cf7ce..d49ea6bd3 100644 --- a/webgoat-container/src/main/java/org/owasp/webgoat/lessons/model/LessonInfoModel.java +++ b/webgoat-container/src/main/java/org/owasp/webgoat/lessons/model/LessonInfoModel.java @@ -34,7 +34,8 @@ public class LessonInfoModel { if (lesson.getCategory().equals(Category.CHALLENGE)) { this.numberHints = (lesson.isAuthorized(webSession, AbstractLesson.CHALLENGE_ROLE, WebSession.SHOWHINTS)) ? lesson.getHintCount(webSession) : 0; this.hasSource = (lesson.isAuthorized(webSession, AbstractLesson.CHALLENGE_ROLE, WebSession.SHOWHINTS)); - this.hasSolution = (lesson.isAuthorized(webSession, AbstractLesson.CHALLENGE_ROLE, WebSession.SHOWHINTS)); //assuming we want this as well + this.hasSolution = (lesson.isAuthorized(webSession, AbstractLesson.CHALLENGE_ROLE, WebSession.SHOWHINTS)); //assuming we want this to fall in line with source and solution + this.hasPlan = (lesson.isAuthorized(webSession, AbstractLesson.CHALLENGE_ROLE, WebSession.SHOWHINTS)); //assuming we want this to fall in line with source and solutionn } }