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

Students incorrectly require course update capability in Cookie Consent of Collapsed Topics

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE

      Description

      The cookie consent code in 'cookie_consent.php' has an incorrect requires capability that states the user must have course update capability. This is incorrect, all users must be able to set consent.

      The solution is to remove the requires_consent line of:

      require_capability('moodle/course:update', $coursecontext);

      Issue noticed by 'Neill Magill' on http://moodle.org/mod/forum/discuss.php?d=201582#p889334

        Attachments

          Activity

            People

            Assignee:
            gb2048 Gareth J Barnard
            Reporter:
            gb2048 Gareth J Barnard
            Participants:
            Component watchers:
            Gareth J Barnard
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

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