aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorJim Wigginton <terrafrost@phpbb.com>2009-03-02 23:16:35 +0000
committerJim Wigginton <terrafrost@phpbb.com>2009-03-02 23:16:35 +0000
commitaef857c98d518260ba428dd31c054e910f6f54fc (patch)
tree8a8ead9c29106d1483c53fa28b158130cf278617 /phpBB/posting.php
parent67537911a4ccf270c1c438ce88aae05763983647 (diff)
downloadforums-aef857c98d518260ba428dd31c054e910f6f54fc.tar
forums-aef857c98d518260ba428dd31c054e910f6f54fc.tar.gz
forums-aef857c98d518260ba428dd31c054e910f6f54fc.tar.bz2
forums-aef857c98d518260ba428dd31c054e910f6f54fc.tar.xz
forums-aef857c98d518260ba428dd31c054e910f6f54fc.zip
Fixed bug # 41435
Authorised by: acydburn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9356 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 1666342c9b..601bc2ab26 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -96,7 +96,8 @@ switch ($mode)
AND t.topic_id = p.topic_id
AND u.user_id = p.poster_id
AND (f.forum_id = t.forum_id
- OR f.forum_id = $forum_id)";
+ OR f.forum_id = $forum_id)" .
+ (($auth->acl_get('m_approve', $forum_id)) ? '' : 'AND p.post_approved = 1');
break;
case 'smilies':