Disallow people posting in forums where they arent allowed to post! 8-.
authormoodler <moodler>
Fri, 25 Oct 2002 07:22:59 +0000 (07:22 +0000)
committermoodler <moodler>
Fri, 25 Oct 2002 07:22:59 +0000 (07:22 +0000)
mod/forum/post.php

index 2c87a9259cf08e5276fef09ddbcf6d5157929f4f..b8b584f8c2dbeb44830b09b2e11626c56e72bc63 100644 (file)
         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;