Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-1775

Questionnaire 'Print this reponse' doesn't work for Teachers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.7
    • Fix Version/s: 1.9.10, 2.0.1
    • Component/s: Module: Questionnaire
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      When a teacher or editor views Questionnaire results by response, the 'Print this response' link gives a 'no permissions' error. This is because /mod/questionnaire/print.php throws this error when user_can_take() returns false. Teachers/editors cannot take Questionnaires by default, so they always get the error.

      The purpose of this condition is to prevent a 'snooper' from gaining access to Questionnaire results by typing the appropriate URL, but given that they can get access to the "view by reponse" page anyway using the same trick, there seems little point in preventing it here.

        Attachments

          Activity

            People

            Assignee:
            mchurch Mike Churchward
            Reporter:
            daveyboond Steve Bond
            Participants:
            Component watchers:
            Mike Churchward
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              25/Oct/10