mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-37687 use $SITE to allow non-logged-in users to browse comment via ajax
This commit is contained in:
parent
b3778a0dec
commit
cff7e83d2d
@ -35,6 +35,10 @@ if (empty($CFG->usecomments)) {
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user