From fcdd5bb53d01be00d7d90896dbd1b3da3e424cb9 Mon Sep 17 00:00:00 2001 From: Rodrigo Mady Date: Wed, 5 Jul 2023 10:51:09 -0300 Subject: [PATCH] MDL-78559 mod_chat: Fix chat report loading with TeX filter --- mod/chat/report.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mod/chat/report.php b/mod/chat/report.php index 050c1446daf..07f37d05ebe 100644 --- a/mod/chat/report.php +++ b/mod/chat/report.php @@ -51,12 +51,11 @@ if (! $course = $DB->get_record('course', array('id' => $chat->course))) { throw new \moodle_exception('coursemisconf'); } +require_login($course, false, $cm); $context = context_module::instance($cm->id); $PAGE->set_context($context); $PAGE->set_heading($course->fullname); -require_login($course, false, $cm); - if (empty($chat->studentlogs) && !has_capability('mod/chat:readlog', $context)) { notice(get_string('nopermissiontoseethechatlog', 'chat')); }