Skip to content

Commit

Permalink
Fix for missing "reply" links for guests doh! MDL-7393
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Nov 8, 2006
1 parent c9dc31a commit 92ac252
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/forum/discuss.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 92ac252

Please sign in to comment.