Permalink
Browse files

MDL-37687 use $SITE to allow non-logged-in users to browse comment vi…

…a ajax
  • Loading branch information...
1 parent b3778a0 commit cff7e83d2d7286e62d1e0e0350a74f47e6091a58 @nebgor nebgor committed Feb 12, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 comment/comment_ajax.php
View
@@ -35,6 +35,10 @@
list($context, $course, $cm) = get_context_info_array($contextid);
+if ( $contextid == SYSCONTEXTID ) {
+ $course = $SITE;
+}
+
$PAGE->set_url('/comment/comment_ajax.php');
// Allow anonymous user to view comments providing forcelogin now enabled

0 comments on commit cff7e83

Please sign in to comment.