]> git.mjollnir.org Git - moodle.git/commitdiff
Allow autologin as guest when viewing discussions (come in via link, say)
authormoodler <moodler>
Tue, 24 Oct 2006 15:58:34 +0000 (15:58 +0000)
committermoodler <moodler>
Tue, 24 Oct 2006 15:58:34 +0000 (15:58 +0000)
mod/forum/discuss.php

index 7e56c9c65d92e4fa44e4bdbacf81060cca3e59a7..400a379cc33eccdcb24d5789a6afa00b87386a63 100644 (file)
@@ -30,7 +30,7 @@
     }
     // move this down fix for MDL-6926
     require_once("lib.php");
-    require_course_login($course, false, $cm);
+    require_course_login($course, true, $cm);
 
     $modcontext = get_context_instance(CONTEXT_MODULE, $cm->id);
     $canviewdiscussion = has_capability('mod/forum:viewdiscussion', $modcontext);