Permalink
Browse files

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

Thanks to Francois Gauthier for report/fix.
  • Loading branch information...
danmarsden authored and damyon committed May 12, 2013
1 parent 1adad7f commit c76c989420b984a86b1a290cf6fc5ad04be3d4c4
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 c76c989

Please sign in to comment.