aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2012-12-24 14:33:05 +0100
committerMarc Alexander <admin@m-a-styles.de>2012-12-24 14:33:05 +0100
commit46b3c3ecc43721e53c9711a196e91c300e03a1c8 (patch)
treec936edfeb531760c3667a41c40799dd6bb61bb80 /phpBB/includes/functions_posting.php
parente444f5bf2a8b30aefb3700ce358d2a6be66c8cb5 (diff)
parent21b9ac6c880cbee7c8bda263871b24414671672a (diff)
downloadforums-46b3c3ecc43721e53c9711a196e91c300e03a1c8.tar
forums-46b3c3ecc43721e53c9711a196e91c300e03a1c8.tar.gz
forums-46b3c3ecc43721e53c9711a196e91c300e03a1c8.tar.bz2
forums-46b3c3ecc43721e53c9711a196e91c300e03a1c8.tar.xz
forums-46b3c3ecc43721e53c9711a196e91c300e03a1c8.zip
Merge branch 'develop' of https://github.com/phpbb/phpbb3 into develop
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 171cf988ce..8aea27a9ef 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -1695,8 +1695,9 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
// The variable name should be $post_approved, because it indicates if the post is approved or not
$post_approval = 1;
- // Check the permissions for post approval. Moderators are not affected.
- if (!$auth->acl_get('f_noapprove', $data['forum_id']) && !$auth->acl_get('m_approve', $data['forum_id']))
+ // Check the permissions for post approval.
+ // Moderators must go through post approval like ordinary users.
+ if (!$auth->acl_get('f_noapprove', $data['forum_id']))
{
// Post not approved, but in queue
$post_approval = 0;