mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/9837] Display unapproved posts to their authors
Change code order to improve efficiency. PHPBB3-9837
This commit is contained in:
parent
15da5b108e
commit
8726baea9f
1 changed files with 1 additions and 1 deletions
|
@ -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])) ||
|
||||
|
|
Loading…
Add table
Reference in a new issue