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

Students can view grade for hidden assignments

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.1
    • 1.8.3, 1.9
    • Gradebook
    • None
    • MOODLE_17_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE

    Description

      Students can view the grading for hidden assignments. This can be extremely harmful from a pedagogical way, since many times teachers want a hidden place to keep their own thoughts about a student's work, a different place from the "official" grading presented to the student. A way to do this is adding a hidden assignment that can be used for that purpose.

      First I supposed there could be something wrong with a capability, but I could temporarily solve it by changing line 3059 of grade/lib.php:

      FROM: if (empty($mod->modname))

      { continue; // Just in case, see MDL-7150 }

      TO: if (empty($mod->modname) || empty($mod->visible))

      { continue; // Just in case, see MDL-7150 }

      Maybe ther should be a check for capabilities in place of this.

      Attachments

        Activity

          People

            skodak Petr Skoda
            petcheverry Pablo Etcheverry
            Nobody Nobody
            Adrian Greeve, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
            Votes:
            5 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11/Oct/07