1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-25 20:44:01 +01:00

[ticket/14313] Check for item approved explicitly

PHPBB3-14313
This commit is contained in:
Richard McGirr 2015-11-26 05:23:18 -05:00
parent 4ea325029b
commit 4966d6c913

View File

@ -1822,7 +1822,7 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
);
// Only display the quote button if the post is quotable. Posts not approved are not quotable.
$quote_allowed = ($quote_allowed && $row['post_visibility']) ? true : false;
$quote_allowed = ($quote_allowed && $row['post_visibility'] == ITEM_APPROVED) ? true : false;
$delete_allowed = $force_delete_allowed || ($user->data['is_registered'] && (
($auth->acl_get('m_delete', $forum_id) || ($auth->acl_get('m_softdelete', $forum_id) && $row['post_visibility'] != ITEM_DELETED)) ||