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

preview question capability wrongly denied to student who has moodle/question:manage capability

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4
    • 1.7.5, 1.8.5
    • Questions
    • None
    • MOODLE_18_STABLE
    • MOODLE_17_STABLE, MOODLE_18_STABLE

    Description

      Using Moodle 1.8.4
      In one of my courses I need to give students moodle/question:manage capability so they can author their own questions.
      They can indeed access Questions from the Admin block, they can create and edit questions, but they are denied access to Preview questions, which is not logical.
      Diagnostic: wrong test in file /question/preview.php lines 44 & seq.
      // this might break things in the future
      if (!isteacherinanycourse())

      { error('This page is for teachers only'); }

      Whoever wrote that comment was right: it does break things for me!
      I urgently need this to be fixed (simply remove the obnoxious lines) and committed to 1.8 STABLE, as I need it to work for my next class on Friday, Feb. 22nd. (our Admin accepts updating but is very reluctant to hack anything on our university moodle site).
      Thanks,
      Joseph

      Attachments

        Activity

          People

            timhunt Tim Hunt
            rezeau Joseph Rézeau
            Safat Shahin, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8/Apr/08