diff options
author | v12mike <github@ingenious.co.nz> | 2019-10-06 09:51:45 -0400 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-11-21 13:44:22 +0100 |
commit | 8726baea9fd0b0ba9a09a00f24c4bb616ccec8cd (patch) | |
tree | 7d3e2c3fb83ca1e7e7e5610b08e0afdc2726de16 /phpBB | |
parent | 15da5b108e6b93fd0059b1b523b68eccec1cce5c (diff) | |
download | forums-8726baea9fd0b0ba9a09a00f24c4bb616ccec8cd.tar forums-8726baea9fd0b0ba9a09a00f24c4bb616ccec8cd.tar.gz forums-8726baea9fd0b0ba9a09a00f24c4bb616ccec8cd.tar.bz2 forums-8726baea9fd0b0ba9a09a00f24c4bb616ccec8cd.tar.xz forums-8726baea9fd0b0ba9a09a00f24c4bb616ccec8cd.zip |
[ticket/9837] Display unapproved posts to their authors
Change code order to improve efficiency.
PHPBB3-9837
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/phpbb/content_visibility.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/content_visibility.php b/phpBB/phpbb/content_visibility.php index bea49c0be1..457b53653d 100644 --- a/phpBB/phpbb/content_visibility.php +++ b/phpBB/phpbb/content_visibility.php @@ -147,7 +147,7 @@ class content_visibility $visibility = $data[$mode . '_visibility']; $poster_key = ($mode === 'topic') ? 'topic_poster' : 'poster_id'; $is_visible = ($visibility == ITEM_APPROVED) || - ($this->config['display_unapproved_posts'] && + ($this->config['display_unapproved_posts'] && ($this->user->data['user_id'] <> ANONYMOUS) && ($visibility == ITEM_UNAPPROVED || $visibility == ITEM_REAPPROVE) && ($this->user->data['user_id'] === $data[$poster_key])) || |