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

non-editing teacher should see Grade analysis in Lesson

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5, 2.7.4, 2.8.2, 2.9
    • 2.9
    • Lesson
    • MOODLE_25_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
    • MOODLE_29_STABLE
    • Hide

      Create a graded lesson with some question pages
      As a student attempt the lesson.
      Verify that connected as both a teacher and as a non editing teacher you can access the lesson statistics.

      • clicking on the "Reports" tab or following Reports -> Overview and Reports ->Detailed statistics in the lesson administration menu
      • from the gradebook when you click on the magnifying glass near a student grade for the lesson

      Remove the mod/lesson:viewreports capability from a teacher or non editing teacher and verify you can no more access lesson statistics from anywhere.

      Show
      Create a graded lesson with some question pages As a student attempt the lesson. Verify that connected as both a teacher and as a non editing teacher you can access the lesson statistics. clicking on the "Reports" tab or following Reports -> Overview and Reports ->Detailed statistics in the lesson administration menu from the gradebook when you click on the magnifying glass near a student grade for the lesson Remove the mod/lesson:viewreports capability from a teacher or non editing teacher and verify you can no more access lesson statistics from anywhere.

    Description

      There is a wrong capability in mod/lesson/grade.php for viewing grade analysis (Lesson reports).
      Replace :

      if (has_capability('mod/lesson:edit', context_module::instance($cm->id))) {
      

      with

      if (has_capability('mod/lesson:manage', context_module::instance($cm->id))) {
      

      The non-editing teacher (aka "tutor") IS allowed to view lesson reports.

      Attachments

        Activity

          People

            jmvedrine Jean-Michel Vedrine
            rezeau Joseph Rézeau
            Andrew Davis Andrew Davis
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Mark Nelson Mark Nelson
            Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11/May/15