Automattic / sensei

Sensei LMS - Online Courses, Quizzes, & Learning
https://senseilms.com
GNU General Public License v2.0
525 stars 195 forks source link

Quiz: Answer leakage for quizes not autograded and not resettable by the user #1442

Closed kraftbj closed 8 years ago

kraftbj commented 8 years ago

Steps to duplicate:

  1. Create course/lesson
  2. Create quiz, not auto-graded, not resetable by user
  3. Take course and answer 1 quiz question.
  4. Save the quiz (not submitted).

Expected: Answers to save, no hints/feedback/answers revealed.

Actual: All answers are marked as incorrect with the right answer given.

kraftbj commented 8 years ago

https://github.com/Automattic/sensei/blob/ed3d008734924829ff53abfceacbe951a009b0b0/includes/class-sensei-question.php#L679

We're checking if answers are submitted, not if the quiz has been submitted for grading nor if it has been graded.