Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

Thanks to Francois Gauthier for report/fix.
  • Loading branch information...
commit 82acf6cf70e3c3e76e507fc5865e7e9ac3a4278e 1 parent 77de5ca
Dan Marsden danmarsden authored damyon committed

Showing 1 changed file with 1 addition and 3 deletions. Show diff stats Hide diff stats

  1. +1 3 mod/chat/gui_sockets/index.php
4 mod/chat/gui_sockets/index.php
@@ -27,9 +27,7 @@
27 27 require_login($course, false, $cm);
28 28 $context = get_context_instance(CONTEXT_MODULE, $cm->id);
29 29
30   -if (isguestuser()) {
31   - print_error('noguests', 'chat');
32   -}
  30 +require_capability('mod/chat:chat', $context);
33 31
34 32 /// Check to see if groups are being used here
35 33 if ($groupmode = groups_get_activity_groupmode($cm)) { // Groups are being used

0 comments on commit 82acf6c

Please sign in to comment.
Something went wrong with that request. Please try again.