projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87a2fa0
)
Disallow people posting in forums where they arent allowed to post! 8-.
author
moodler
<moodler>
Fri, 25 Oct 2002 07:22:59 +0000
(07:22 +0000)
committer
moodler
<moodler>
Fri, 25 Oct 2002 07:22:59 +0000
(07:22 +0000)
mod/forum/post.php
patch
|
blob
|
history
diff --git
a/mod/forum/post.php
b/mod/forum/post.php
index 2c87a9259cf08e5276fef09ddbcf6d5157929f4f..b8b584f8c2dbeb44830b09b2e11626c56e72bc63 100644
(file)
--- a/
mod/forum/post.php
+++ b/
mod/forum/post.php
@@
-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;