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

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

XMLWordPrintable

    • MOODLE_19_STABLE
    • MOODLE_19_STABLE, MOODLE_20_STABLE

      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.

            mchurch Mike Churchward
            daveyboond Steve Bond
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.