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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4
    • Fix Version/s: 1.7.5, 1.8.5
    • Component/s: Questions
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      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

            • Assignee:
              timhunt Tim Hunt
              Reporter:
              rezeau Joseph Rézeau
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/Apr/08