From 89c355e5cb45c3048429ba26c93c25989e6351c1 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 23 Oct 2006 13:23:16 +0000 Subject: [PATCH] Merged fix for letting guests see discussion post button from stable --- mod/forum/lib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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\" />"; -- 2.39.5