merged fix for 5551

This commit is contained in:
toyomoyo 2006-05-22 02:39:14 +00:00
parent 9fd66c6642
commit 92998e94bd
2 changed files with 8 additions and 4 deletions

View file

@ -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");
}