1
0
mirror of https://github.com/moodle/moodle.git synced 2025-05-09 01:36:40 +02:00

Merged reply link fix from stable

This commit is contained in:
moodler 2006-11-05 09:35:01 +00:00
parent 82b37f12e2
commit f5bf7ea86a

@ -188,6 +188,12 @@
$canreply = ( (empty($mygroupid) && $discussion->groupid == -1) ||
(ismember($discussion->groupid) || $mygroupid == $discussion->groupid) );
}
} else {
if (!has_capability('mod/forum:replypost', $modcontext)) {
if (!has_capability('moodle/legacy:guest', $coursecontext, NULL, false)) { // User is a guest here!
$canreply = false;
}
}
}