1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-14 04:30:29 +01:00

[ticket/16793] Fix topic/post visibility - PHP 8

PHPBB3-16793
This commit is contained in:
3D-I 2021-06-09 04:07:59 +02:00
parent 1177f843c5
commit c9b32463de

View File

@ -148,7 +148,7 @@ class content_visibility
$is_visible = ($visibility == ITEM_APPROVED) ||
($this->config['display_unapproved_posts']
&& ($this->user->data['user_id'] != ANONYMOUS)#
&& ($this->user->data['user_id'] != ANONYMOUS)
&& ($visibility == ITEM_UNAPPROVED || $visibility == ITEM_REAPPROVE)
) ||
$this->auth->acl_get('m_approve', $forum_id);