Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-64238

Timeline leaks Lesson & Quiz closing (or opening) dates to users suspended or not current in a course who have received a user override

XMLWordPrintable

    • MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
    • MOODLE_35_STABLE, MOODLE_36_STABLE
    • MDL-64238-master
    • Hide

      PHPunit tests provided.

      Testing instructions:

      1. Log in as Teacher,
      2. create a course, enrol at least one student(S1).
      3. Create 2 Lessons and 2 Quizzes.
      4. Add closing dates(in the past) to Lesson 1 & Quiz 1.
      5. Add ONLY opening dates(in the past) to Lesson 2 & Quiz 2.
      6. Add user override dates for S1 for Lesson 1 & Quiz 1 (closing date overrides) and Lesson 2 & Quiz 2 (opening date overrides). Make sure all the override dates fall within Timeline's reach (no earlier than 14 days back).
      7. Log in as S1
      8. Add the timeline block, if not available
      9. Confirm you can see the lesson and quiz from #3
      10. Log back in as a teacher and suspend S1 from the course OR add a past enrolment date or a future start enrolment date to make them not current.
      11. Log in as S1
      12. Confirm you cannot view the lesson or quiz from #3 in the timeline block
      Show
      PHPunit tests provided. Testing instructions: Log in as Teacher, create a course, enrol at least one student(S1). Create 2 Lessons and 2 Quizzes. Add closing dates(in the past) to Lesson 1 & Quiz 1. Add ONLY opening dates(in the past) to Lesson 2 & Quiz 2. Add user override dates for S1 for Lesson 1 & Quiz 1 (closing date overrides) and Lesson 2 & Quiz 2 (opening date overrides). Make sure all the override dates fall within Timeline's reach (no earlier than 14 days back). Log in as S1 Add the timeline block, if not available Confirm you can see the lesson and quiz from #3 Log back in as a teacher and suspend S1 from the course OR add a past enrolment date or a future start enrolment date to make them not current. Log in as S1 Confirm you cannot  view the lesson or quiz from #3 in the timeline block

      This was first briefly reported in MDL-64063 after it was closed.

      Scenario:

      1. Log in as Teacher into a course, enrol at least one student.
      2. Create 2 Lessons and 2 Quizzes.
      3. Add closing dates to Lesson 1 & Quiz 1.
      4. Add ONLY opening dates to Lesson 2 & Quiz 2.
      5. Add user override dates for the Student for Lesson 1 & Quiz 1 (closing date overrides) and Lesson 2 & Quiz 2 (opening date overrides). Make sure all the override dates fall within Timeline's reach (no earlier than 14 days back).
      6. Suspend the Student in the course OR add them a past enrolment date or a future start enrolment date to make them Not current.
      7. Log in as the student and notice that their Timeline will display all the Lesson & Quiz override dates, even though the student cannot access them in view of being suspended / not current in the course.

      The problem does NOT concern Assignment. The problem does not concern group overrides - according my tests first reported in MDL-64063.

            peterdias Peter Dias
            pmk Przemek Kaszubski
            Tim Hunt Tim Hunt
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 40 minutes
                40m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.