]> git.mjollnir.org Git - moodle.git/commitdiff
Merged from 1.7
authorvyshane <vyshane>
Tue, 5 Dec 2006 08:15:01 +0000 (08:15 +0000)
committervyshane <vyshane>
Tue, 5 Dec 2006 08:15:01 +0000 (08:15 +0000)
mod/forum/post.php

index 4f8e98a300cea03e49cfe1c9ed8e215c46335814..4f5a22a8dd62e08d03559e3f619f1e3e07d928ff 100644 (file)
     if (!empty($parent) && !forum_user_can_see_post($forum, $discussion, $post)) {
         error("You cannot reply to this post");
     }
-    if (empty($parent) && !forum_user_can_post_discussion($forum)) {
+    if (empty($parent) && empty($edit) && !forum_user_can_post_discussion($forum)) {
         error("You cannot start a new discussion in this forum");
     }