Details
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.
hello,
unfortunately we can not use $USER because feed readers may not send cookies and session will not work and it would not be secure anyway, this should be fixed in 2.0