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

RSS not generating if forum/course is hidden

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

            skodak Petr Skoda
            tmuras Tomasz Muras
            Andrew Davis Andrew Davis
            Adrian Greeve, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              28/Jan/09