Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

Commit

Permalink
MDL-37687 use $SITE to allow non-logged-in users to browse comment vi…
Browse files Browse the repository at this point in the history
…a ajax
  • Loading branch information
Aparup Banerjee committed Feb 12, 2013
1 parent b3778a0 commit cff7e83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions comment/comment_ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cff7e83

Please sign in to comment.