Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

Thanks to Francois Gauthier for report/fix.
  • Loading branch information...
commit 0bde9de1616174209bc03030ebcf8d3265586585 1 parent dafe65e
@danmarsden danmarsden authored damyon committed
Showing with 1 addition and 4 deletions.
  1. +1 −4 mod/chat/gui_sockets/index.php
5 mod/chat/gui_sockets/index.php
@@ -26,10 +26,7 @@
require_login($course, false, $cm);
$context = context_module::instance($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
Please sign in to comment.
Something went wrong with that request. Please try again.