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

Students can view grade for hidden assignments

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.1
    • Fix Version/s: 1.8.3, 1.9
    • Component/s: Gradebook
    • Labels:
      None
    • Affected Branches:
      MOODLE_17_STABLE
    • Fixed Branches:
      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

            Assignee:
            skodak Petr Skoda
            Reporter:
            petcheverry Pablo Etcheverry
            Tester:
            Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            5 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Oct/07