mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00:00
[ticket/14313] Don't display quote button on unapproved posts
PHPBB3-14313
This commit is contained in:
parent
df223eac65
commit
4ea325029b
1 changed files with 3 additions and 0 deletions
|
@ -1821,6 +1821,9 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
|
||||||
($user->data['user_id'] == ANONYMOUS || $auth->acl_get('f_reply', $forum_id))
|
($user->data['user_id'] == ANONYMOUS || $auth->acl_get('f_reply', $forum_id))
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// 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;
|
||||||
|
|
||||||
$delete_allowed = $force_delete_allowed || ($user->data['is_registered'] && (
|
$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)) ||
|
($auth->acl_get('m_delete', $forum_id) || ($auth->acl_get('m_softdelete', $forum_id) && $row['post_visibility'] != ITEM_DELETED)) ||
|
||||||
(!$s_cannot_delete && !$s_cannot_delete_lastpost && !$s_cannot_delete_time && !$s_cannot_delete_locked)
|
(!$s_cannot_delete && !$s_cannot_delete_lastpost && !$s_cannot_delete_time && !$s_cannot_delete_locked)
|
||||||
|
|
Loading…
Add table
Reference in a new issue