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

RSS not generating if forum/course is hidden

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.9.4
    • 1.9.3
    • Forum, RSS
    • None
    • Any.
    • Any
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE
    • Easy

      When forum or course is hidden, RSS feeds from the forum are not being generated.

      This is caused by wrong capability check in rss/file.php:
      //Check for "security" if the course is hidden or the activity is hidden
      if (Unable to render embedded object: File ($isblog and () not found.$course->visible || !$cm->visible) && (!has_capability('moodle/course:viewhiddenactivities', $context))) {

      User ID should be passed to has_capability because current user ($USER) is overwritten at the beginning of the rss/file.php file.

      Patch attached.

            skodak Petr Skoda
            tmuras Tomasz Muras
            Andrew Davis Andrew Davis
            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.