From: moodler Date: Mon, 23 Oct 2006 13:23:16 +0000 (+0000) Subject: Merged fix for letting guests see discussion post button from stable X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=89c355e5cb45c3048429ba26c93c25989e6351c1;p=moodle.git Merged fix for letting guests see discussion post button from stable --- diff --git a/mod/forum/lib.php b/mod/forum/lib.php index cb65d62c29..802f83a9f8 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -3115,7 +3115,9 @@ function forum_print_latest_discussions($course, $forum, $maxdiscussions=5, $dis /// If the user can post discussions, then this is a good place to put the button for it //add group mode in there, to test for visible group - if (forum_user_can_post_discussion($forum, $currentgroup, $groupmode)) { + if (forum_user_can_post_discussion($forum, $currentgroup, $groupmode) || + has_capability('moodle/legacy:guest', $context, NULL, false)) { + echo '
'; echo "
wwwroot/mod/forum/post.php\">"; echo "id\" />";