mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Merge branch 'MDL-78559-master' of https://github.com/rmady/moodle
This commit is contained in:
commit
f4c4aad52b
@ -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'));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user