MDL-24941, fixed nopermission error when student entering scheduled chat session
This commit is contained in:
@@ -42,7 +42,7 @@ if (!$cm = get_coursemodule_from_instance('chat', $chat->id, $course->id)) {
|
||||
|
||||
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
|
||||
require_login($course->id, false, $cm);
|
||||
require_capability('mod/chat:chat',$context);
|
||||
require_capability('mod/chat:chat', $context);
|
||||
$PAGE->set_pagelayout('base');
|
||||
|
||||
/// Check to see if groups are being used here
|
||||
|
||||
Reference in New Issue
Block a user