From c63729199793922442e535eae9124924d9899dfd Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Mon, 4 Oct 2010 13:31:19 +0000 Subject: [PATCH] rss MDL-24508 fixed guest access to rss feeds --- mod/data/rsslib.php | 2 +- mod/glossary/rsslib.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/data/rsslib.php b/mod/data/rsslib.php index a762dad4dfc..e03f30f6035 100644 --- a/mod/data/rsslib.php +++ b/mod/data/rsslib.php @@ -12,7 +12,7 @@ return null; } - if (!is_enrolled($context, null, 'mod/data:managetemplates')) { + if (!is_enrolled($context, null, 'mod/data:managetemplates') && !isguestuser()) { return null; } diff --git a/mod/glossary/rsslib.php b/mod/glossary/rsslib.php index a53f5ee86b3..4ebd37699ed 100644 --- a/mod/glossary/rsslib.php +++ b/mod/glossary/rsslib.php @@ -15,7 +15,7 @@ //check capabilities //glossary module doesn't require any capabilities to view glossary entries (aside from being logged in) - if (!is_enrolled($context)) { + if (!is_enrolled($context) && !isguestuser()) { return null; }