Disallow people posting in forums where they arent allowed to post! 8-.

This commit is contained in:
moodler
2002-10-25 07:22:59 +00:00
parent 87a2fa0338
commit 6c506ca744
+4
View File
@@ -114,6 +114,10 @@
if (! $course = get_record("course", "id", $discussion->course)) {
error("The course number was incorrect ($discussion->course)");
}
if (! forum_user_can_post($forum)) {
error("Sorry, but you can not post in this forum.");
}
// Load up the $post variable.
$post->course = $course->id;