Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-36620 - Blog, RSS - Preventing Guests from viewing the RSS of sit…

…e level blogs
commit cb838a36b21d4858916051f315d5499190897912 1 parent 56f4d0e
@phalacee phalacee authored danpoltawski committed
Showing with 7 additions and 0 deletions.
  1. +7 −0 blog/rsslib.php
View
7 blog/rsslib.php
@@ -163,6 +163,13 @@ function blog_rss_get_feed($context, $args) {
return '';
}
+ if ($CFG->bloglevel == BLOG_SITE_LEVEL) {
+ if (isguestuser()) {
+ debugging(get_string('nopermissiontoshow','error'));
+ return '';
+ }
+ }
+
$sitecontext = context_system::instance();
if (!has_capability('moodle/blog:view', $sitecontext)) {
return null;
Please sign in to comment.
Something went wrong with that request. Please try again.