From 2412f8b882bad3b160ea7cdf9b38e9ab61b1ec72 Mon Sep 17 00:00:00 2001 From: Dongsheng Cai Date: Fri, 5 Nov 2010 02:41:16 +0000 Subject: [PATCH] MDL-25069, chat, check if user loggedin --- mod/chat/chat_ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/chat/chat_ajax.php b/mod/chat/chat_ajax.php index 836dc49cdf2..feb98416da0 100644 --- a/mod/chat/chat_ajax.php +++ b/mod/chat/chat_ajax.php @@ -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')); } -- 2.43.0