Permalink
Browse files

MDL-39628 Chat: check mod/chat:chat capability when using daemon.

Thanks to Francois Gauthier for report/fix.
  • Loading branch information...
1 parent 77de5ca commit 82acf6cf70e3c3e76e507fc5865e7e9ac3a4278e @danmarsden danmarsden committed with damyon May 12, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −3 mod/chat/gui_sockets/index.php
@@ -27,9 +27,7 @@
require_login($course, false, $cm);
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
-if (isguestuser()) {
- print_error('noguests', 'chat');
-}
+require_capability('mod/chat:chat', $context);
/// Check to see if groups are being used here
if ($groupmode = groups_get_activity_groupmode($cm)) { // Groups are being used

0 comments on commit 82acf6c

Please sign in to comment.