mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 16:13:28 +02:00
MDL-25069, chat, check if user loggedin
This commit is contained in:
parent
486fe803c1
commit
2412f8b882
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ if (!$course = $DB->get_record('course', array('id'=>$chat->course))) {
|
|||
if (!$cm = get_coursemodule_from_instance('chat', $chat->id, $course->id)) {
|
||||
chat_print_error('ERROR', get_string('invalidcoursemodule', 'error'));
|
||||
}
|
||||
if (isguestuser()) {
|
||||
if (!isloggedin()) {
|
||||
chat_print_error('ERROR', get_string('notlogged','chat'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue