diff --git a/blocks/news_items/block_news_items.php b/blocks/news_items/block_news_items.php index de57a2d19bd..707f4c02a21 100644 --- a/blocks/news_items/block_news_items.php +++ b/blocks/news_items/block_news_items.php @@ -81,7 +81,6 @@ class block_news_items extends block_base { $groupmode = groups_get_activity_groupmode($cm); $currentgroup = groups_get_activity_group($cm, true); - if (forum_user_can_post_discussion($forum, $currentgroup, $groupmode, $cm, $context)) { $text .= ''; @@ -95,7 +94,8 @@ class block_news_items extends block_base { // in the future. $sort = forum_get_default_sort_order(true, 'p.modified'); if (! $discussions = forum_get_discussions($cm, $sort, false, - $currentgroup, $this->page->course->newsitems) ) { + -1, $this->page->course->newsitems, + false, -1, 0, FORUM_POSTS_ALL_USER_GROUPS) ) { $text .= '('.get_string('nonews', 'forum').')'; $this->content->text = $text; return $this->content;