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

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

XMLWordPrintable

    • MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE

      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

            gb2048 Gareth J Barnard
            gb2048 Gareth J Barnard
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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