mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-28981 fix forum_user_can_post() call params
This commit is contained in:
parent
4f3632441a
commit
11ec4ed51d
1 changed files with 1 additions and 1 deletions
|
@ -1060,7 +1060,7 @@ function forum_make_mail_html($course, $cm, $forum, $discussion, $post, $userfro
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($userto->canpost[$discussion->id])) {
|
if (!isset($userto->canpost[$discussion->id])) {
|
||||||
$canreply = forum_user_can_post($forum, $discussion, $userto);
|
$canreply = forum_user_can_post($forum, $discussion, $userto, $cm, $course);
|
||||||
} else {
|
} else {
|
||||||
$canreply = $userto->canpost[$discussion->id];
|
$canreply = $userto->canpost[$discussion->id];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue