Permalink
Browse files

MDL-39192 mod_forum: do not need to check the posting threshold when …

…editing a post
  • Loading branch information...
1 parent 7b9df23 commit b4eb152f694bca72be6a9cd6abedf70e11fc7e1c @markn86 markn86 committed Apr 18, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 mod/forum/post.php
View
@@ -864,7 +864,10 @@
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))) {

0 comments on commit b4eb152

Please sign in to comment.