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

Teachers appear in quiz reports when ''enrolled users who have, or have not, attempted the quiz" option selected

XMLWordPrintable

    • MOODLE_36_STABLE, MOODLE_37_STABLE
    • MOODLE_36_STABLE, MOODLE_37_STABLE
    • Hide
      1. Create a course.
      2. Enrol a student and a non-editing teacher.
      3. Make a group 'Test group' and put both users in the group.
      4. Add a quiz, set to 'Separate groups' mode.
      5. Go to Quiz settings -> results -> Grades.
      6. Change the setting to "enrolled users who have, or have not, attempted the quiz" and show the report.
      7. Verify the student is listed and the teacher is not.
      8. Change the group selector to 'Test group'
      9. Verify the student is listed and the teacher is not.
      10. Change the group selector back to 'All groups'
      11. Change the report setting to 'users who have attempted the quiz.
      12. Verify there is not data displayed (because no-one has attempted the quiz.

      If you are paranoid, you could also click through the 'Grades' and 'Response' reports for the quizzes here: https://qa.moodledemo.net/course/view.php?id=2#section-9, just to provide an added check that there are no unexpected regressions.

      Show
      Create a course. Enrol a student and a non-editing teacher. Make a group 'Test group' and put both users in the group. Add a quiz, set to 'Separate groups' mode. Go to Quiz settings -> results -> Grades. Change the setting to "enrolled users who have, or have not, attempted the quiz" and show the report. Verify the student is listed and the teacher is not. Change the group selector to 'Test group' Verify the student is listed and the teacher is not. Change the group selector back to 'All groups' Change the report setting to 'users who have attempted the quiz. Verify there is not data displayed (because no-one has attempted the quiz. If you are paranoid, you could also click through the 'Grades' and 'Response' reports for the quizzes here: https://qa.moodledemo.net/course/view.php?id=2#section-9 , just to provide an added check that there are no unexpected regressions.

      To reproduce:

      1. Create a course.
      2. Enrol a student and a non-editing teacher.
      3. Make a group 'Test group' and put both users in the group.
      4. Add a quiz, set to 'Separate groups' mode.
      5. Go to Quiz settings -> results -> Grades.
      6. Change the setting to "enrolled users who have, or have not, attempted the quiz"

      Expected result: the student is listed. The teacher is not. (It is acutally controlled by the capabilities 'mod/quiz:attempt', 'mod/quiz:reviewmyattempts', not roles.)

      Actual result: both users are listed.

      Note: if you set the Group selector to own show people in 'Test group' then the works and only the student is shown.

            timhunt Tim Hunt
            timhunt Tim Hunt
            John Beedell John Beedell
            Andrew Lyons Andrew Lyons
            Gladys Basiana Gladys Basiana
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m

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