mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
merged fix for 5551
This commit is contained in:
parent
9fd66c6642
commit
92998e94bd
2 changed files with 8 additions and 4 deletions
|
@ -748,7 +748,7 @@
|
|||
if (!empty($parent) && !forum_user_can_see_post($forum,$discussion,$post)) {
|
||||
error("You cannot reply to this post");
|
||||
}
|
||||
if (empty($parent) && !forum_user_can_post_discussion($forum)) {
|
||||
if (empty($parent) && !forum_user_can_post_discussion($forum, false, '', $edit)) {
|
||||
error("You cannot start a new discussion in this forum");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue