Skip to content

Commit

Permalink
rss MDL-24508 fixed guest access to rss feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Davis committed Oct 4, 2010
1 parent 831399c commit c637291
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mod/data/rsslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function data_rss_get_feed($context, $args) {
return null;
}

if (!is_enrolled($context, null, 'mod/data:managetemplates')) {
if (!is_enrolled($context, null, 'mod/data:managetemplates') && !isguestuser()) {
return null;
}

Expand Down
2 changes: 1 addition & 1 deletion mod/glossary/rsslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function glossary_rss_get_feed($context, $args) {

//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;
}

Expand Down

0 comments on commit c637291

Please sign in to comment.