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:
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user