MDL-39192 mod_forum: do not need to check the posting threshold when editing a post

This commit is contained in:
Mark Nelson
2013-04-24 12:32:39 +08:00
parent 931eff3b84
commit 709c441e89
+4 -1
View File
@@ -864,7 +864,10 @@ if ($forum->type == 'qanda'
echo $OUTPUT->notification(get_string('qandanotify','forum'));
}
forum_check_throttling($forum, $cm);
// If we are not editing a post we need to check the posting threshold.
if (!$edit) {
forum_check_throttling($forum, $cm);
}
if (!empty($parent)) {
if (! $discussion = $DB->get_record('forum_discussions', array('id' => $parent->discussion))) {