MDL-30386 blog : saved a function call
authorAparup Banerjee <aparup@moodle.com>
Thu, 1 Dec 2011 04:03:31 +0000 (12:03 +0800)
committerAparup Banerjee <aparup@moodle.com>
Thu, 1 Dec 2011 04:03:31 +0000 (12:03 +0800)
blog/lib.php

index 9a407e9..06ed8ac 100644 (file)
@@ -479,7 +479,7 @@ function blog_get_options_for_user(stdClass $user=null) {
             );
         }
     }
-    if (has_capability('moodle/blog:view', $sitecontext) && $CFG->enablerssfeeds) {
+    if ($canview && $CFG->enablerssfeeds) {
         $options['rss'] = array(
             'string' => get_string('rssfeed', 'blog'),
             'link' => new moodle_url(rss_get_url($sitecontext->id, $USER->id, 'blog', 'user/'.$user->id))