Disallow people posting in forums where they arent allowed to post! 8-.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user