mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/13264] Link to post if user can view it
PHPBB3-13264
This commit is contained in:
parent
d461ee4f5c
commit
dd115d1896
1 changed files with 3 additions and 1 deletions
|
@ -2433,7 +2433,9 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
|
||||||
|
|
||||||
$params = $add_anchor = '';
|
$params = $add_anchor = '';
|
||||||
|
|
||||||
if ($post_visibility == ITEM_APPROVED)
|
if ($post_visibility == ITEM_APPROVED ||
|
||||||
|
($auth->acl_get('m_softdelete', $data['forum_id']) && $post_visibility == ITEM_DELETED) ||
|
||||||
|
($auth->acl_get('m_approve', $data['forum_id']) && in_array($post_visibility, array(ITEM_UNAPPROVED, ITEM_REAPPROVE))))
|
||||||
{
|
{
|
||||||
$params .= '&t=' . $data['topic_id'];
|
$params .= '&t=' . $data['topic_id'];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue