aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-11-01 10:39:56 +0100
committerMarc Alexander <admin@m-a-styles.de>2017-11-01 10:39:56 +0100
commita6c5204cbdd018851a3a1bcfa5ad1d0003dd38f4 (patch)
treeffd08c777344a252e62a16bfc0892a41637a34f3 /phpBB/includes
parent131c26449228221f0028711e41ab79191ab2c25a (diff)
parent33ceceda021160b73fe9d7333e9e950308da5569 (diff)
downloadforums-a6c5204cbdd018851a3a1bcfa5ad1d0003dd38f4.tar
forums-a6c5204cbdd018851a3a1bcfa5ad1d0003dd38f4.tar.gz
forums-a6c5204cbdd018851a3a1bcfa5ad1d0003dd38f4.tar.bz2
forums-a6c5204cbdd018851a3a1bcfa5ad1d0003dd38f4.tar.xz
forums-a6c5204cbdd018851a3a1bcfa5ad1d0003dd38f4.zip
Merge pull request #4973 from DavidIQ/ticket/15372
[ticket/15372] Add permission for listing topics without being able to read them
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_display.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index 32bee14eef..171a73a8de 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -537,7 +537,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
// Create last post link information, if appropriate
if ($row['forum_last_post_id'])
{
- if ($row['forum_password_last_post'] === '' && $auth->acl_get('f_read', $row['forum_id_last_post']))
+ if ($row['forum_password_last_post'] === '' && $auth->acl_gets('f_read', 'f_list_topics', $row['forum_id_last_post']))
{
$last_post_subject = censor_text($row['forum_last_post_subject']);
$last_post_subject_truncated = truncate_string($last_post_subject, 30, 255, false, $user->lang['ELLIPSIS']);