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

Quiz editing permission checking problem

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Quiz
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      get_module_from_cmid() in question/editlib.php sets the module cmid incorrectly. As a result, teachers can't edit quizzes.

      This was working, but changed in the most recent version.

      RCS file: /cvsroot/moodle/moodle/question/editlib.php,v
      retrieving revision 1.69
      diff -u -r1.69 editlib.php
      — editlib.php 12 Jun 2007 11:13:49 -0000 1.69
      +++ editlib.php 14 Jun 2007 22:35:55 -0000
      @@ -28,7 +28,7 @@
      error('cmunknown');
      }
      $modrec->instance = $modrec->id;

      • $modrec->cmid = $modrec->id;
        + $modrec->cmid = $cmrec->id;

      return array($modrec, $cmrec);
      }

        Attachments

          Activity

            People

            Assignee:
            jamiesensei Jamie Pratt
            Reporter:
            adrianeboyd Adriane Boyd
            Tester:
            Nobody
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08