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

permission error reported while editing quiz question

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.0
    • 2.0
    • Quiz
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

    Description

      Comment from MDLQA-501:

      During the preview on step 2 above, editing a question in the preview, I was able to see the edit page but when I went to save the edit I got this error-

      Sorry, but you do not currently have permissions to do that (access question edit tab questions)

      More information about this error
      Stack trace:

      • line 379 of /lib/setuplib.php: moodle_exception thrown
      • line 3200 of /lib/questionlib.php: call to print_error()
      • line 1562 of /question/editlib.php: call to question_edit_contexts->require_one_edit_tab_cap()
      • line 62 of /question/edit.php: call to question_edit_setup()

      However, when I went back to continue the preview, the edit I had made was saved.

      The other steps passed except for "edit and save as a new question" gave the same error as above even though the new question was saved in the question bank.

      I am not sure if the correct behavior is to also add that question as an additional question to the quiz since the teacher is in preview mode.

      When I went to edit a question, not in preview mode, I got a blank screen and a 404 file not found error and a weird double url:

      http://qa.moodle.net/http://qa.moodle.net/mod/quiz/edit.php?cmid=60&category=7%2C78&lastchanged=5

      However, when I went back the edit had been saved.

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              andyjdavis Andrew Davis
              Nobody Nobody
              Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Nov/10