Fix for missing "reply" links for guests doh! MDL-7393

This commit is contained in:
moodler
2006-11-08 09:42:41 +00:00
parent c9dc31afe8
commit 92ac252418
+1
View File
@@ -190,6 +190,7 @@
}
} else {
if (!has_capability('mod/forum:replypost', $modcontext)) {
$coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
if (!has_capability('moodle/legacy:guest', $coursecontext, NULL, false)) { // User is a guest here!
$canreply = false;
}