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

Non-editing teacher can't review details of student's quiz attempts

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.1
    • Fix Version/s: 1.7.2, 1.8, 1.9
    • Component/s: Quiz
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      While a non-editing teacher can see all grades for a quiz, clicking on the attempt gives the error message "This is not your attempt". the code in mod/quiz/review.php that seems to be responsible is as follows:

      — ./mod/quiz/review.php.orig 2007-01-24 16:31:11.000000000 +0000
      +++ ./mod/quiz/review.php 2007-01-24 16:31:28.000000000 +0000
      @@ -47,7 +47,7 @@
      $popup = $isteacher ? 0 : $quiz->popup; // Controls whether this is shown in a javascript-protected window.

      // this capability is not correct, need to find the right one

      • if (!has_capability('mod/quiz:manage', $context)) {
        + if (!has_capability('mod/quiz:grade', $context)) {
        if (!$attempt->timefinish) { redirect('attempt.php?q='.$quiz->id); }

      The change indicated is fine for my application, but may not be applicable in general.

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            ctcmw C Western
            Tester:
            Nobody
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              30/Mar/07