Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1adad7f
)
MDL-39628 Chat: check mod/chat:chat capability when using daemon.
author
Dan Marsden
<dan@danmarsden.com>
Sun, 12 May 2013 22:41:27 +0000
(10:41 +1200)
committer
Damyon Wiese
<damyon@moodle.com>
Tue, 2 Jul 2013 04:23:31 +0000
(12:23 +0800)
Thanks to Francois Gauthier for report/fix.
mod/chat/gui_sockets/index.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/chat/gui_sockets/index.php
b/mod/chat/gui_sockets/index.php
index
ab3d83b
..
228454d
100644
(file)
--- a/
mod/chat/gui_sockets/index.php
+++ b/
mod/chat/gui_sockets/index.php
@@
-27,9
+27,7
@@
if (!$cm = get_coursemodule_from_instance('chat', $chat->id, $course->id)) {
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