aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-07-22 21:40:12 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-07-22 21:40:12 +0200
commit58fa8eabb76535e5044303f68651521a90b0a3ef (patch)
treeb57edf015694cd532fb2f4a6a9e32ef9f30f13d7
parentb2c5f8fb4816a5b35984b32d223b8d1aa3a75b6d (diff)
parent7c559b2912d645291ec1045d589a6bf5e44f6dd0 (diff)
downloadforums-58fa8eabb76535e5044303f68651521a90b0a3ef.tar
forums-58fa8eabb76535e5044303f68651521a90b0a3ef.tar.gz
forums-58fa8eabb76535e5044303f68651521a90b0a3ef.tar.bz2
forums-58fa8eabb76535e5044303f68651521a90b0a3ef.tar.xz
forums-58fa8eabb76535e5044303f68651521a90b0a3ef.zip
Merge branch '3.2.x' into 3.3.x
-rw-r--r--phpBB/posting.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index eba4d9f0a9..28e66f7f44 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -222,6 +222,25 @@ if (!$post_data)
trigger_error(($mode == 'post' || $mode == 'bump' || $mode == 'reply') ? 'NO_TOPIC' : 'NO_POST');
}
+/**
+* This event allows you to bypass reply/quote test of an unapproved post.
+*
+* @event core.posting_modify_row_data
+* @var array post_data All post data from database
+* @var string mode What action to take if the form has been submitted
+* post|reply|quote|edit|delete|bump|smilies|popup
+* @var int topic_id ID of the topic
+* @var int forum_id ID of the forum
+* @since 3.2.8-RC1
+*/
+$vars = array(
+ 'post_data',
+ 'mode',
+ 'topic_id',
+ 'forum_id',
+);
+extract($phpbb_dispatcher->trigger_event('core.posting_modify_row_data', compact($vars)));
+
// Not able to reply to unapproved posts/topics
// TODO: add more descriptive language key
if ($auth->acl_get('m_approve', $forum_id) && ((($mode == 'reply' || $mode == 'bump') && $post_data['topic_visibility'] != ITEM_APPROVED) || ($mode == 'quote' && $post_data['post_visibility'] != ITEM_APPROVED)))