MDL-39192 mod_forum: do not need to check the posting threshold when editing a post
This commit is contained in:
+4
-1
@@ -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))) {
|
||||
|
||||
Reference in New Issue
Block a user