Merged bugfix for bug 4431 from stable

This commit is contained in:
moodler 2005-12-22 10:09:21 +00:00
parent 8321c7b1d5
commit e6bacdc55c
2 changed files with 6 additions and 4 deletions

View file

@ -104,8 +104,8 @@
}
//check if user can view this post
if (!forum_user_can_view_post($parent)){
error ('you can not view this post');
if (!forum_user_can_view_post($parent,$course)){
error('You do not have permissions to view this post');
}
if (! $post = forum_get_post_full($parent)) {