Permalink
Browse files

MDL-30386 blog : saved a function call

  • Loading branch information...
1 parent 9be14d2 commit 0f4c6067e544a539148b61f93c07b27374a2fe1e @nebgor nebgor committed Dec 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 blog/lib.php
View
2 blog/lib.php
@@ -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))

0 comments on commit 0f4c606

Please sign in to comment.