mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 20:08:55 +00:00
Bug #54345 - Do not deliver topics from unreadable forums in the news feed.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10317 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
c207c530b7
commit
afa8dcb42a
2 changed files with 8 additions and 1 deletions
|
@ -113,6 +113,7 @@
|
||||||
<li>[Change] Send time of last item instead of current time in ATOM Feeds. (Bug #53305)</li>
|
<li>[Change] Send time of last item instead of current time in ATOM Feeds. (Bug #53305)</li>
|
||||||
<li>[Change] Use em dash instead of hyphen/minus as separator in ATOM Feeds item statistics. (Bug #53565)</li>
|
<li>[Change] Use em dash instead of hyphen/minus as separator in ATOM Feeds item statistics. (Bug #53565)</li>
|
||||||
<li>[Change] Cache overall, forums, topics and news feeds for anonymous users and bots.</li>
|
<li>[Change] Cache overall, forums, topics and news feeds for anonymous users and bots.</li>
|
||||||
|
<li>[Change] Do not deliver topics from unreadable forums in the news feed. (Bug #54345)</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<a name="v305"></a><h3>1.ii. Changes since 3.0.5</h3>
|
<a name="v305"></a><h3>1.ii. Changes since 3.0.5</h3>
|
||||||
|
|
|
@ -958,7 +958,7 @@ class phpbb_feed_news extends phpbb_feed_base
|
||||||
|
|
||||||
function get_sql()
|
function get_sql()
|
||||||
{
|
{
|
||||||
global $db, $config;
|
global $auth, $config, $db;
|
||||||
|
|
||||||
// Get news forums...
|
// Get news forums...
|
||||||
$sql = 'SELECT forum_id
|
$sql = 'SELECT forum_id
|
||||||
|
@ -969,6 +969,12 @@ class phpbb_feed_news extends phpbb_feed_base
|
||||||
$in_fid_ary = array();
|
$in_fid_ary = array();
|
||||||
while ($row = $db->sql_fetchrow($result))
|
while ($row = $db->sql_fetchrow($result))
|
||||||
{
|
{
|
||||||
|
// Make sure we can read this forum
|
||||||
|
if (!$auth->acl_get('f_read', (int) $row['forum_id']))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$in_fid_ary[] = (int) $row['forum_id'];
|
$in_fid_ary[] = (int) $row['forum_id'];
|
||||||
}
|
}
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
Loading…
Add table
Reference in a new issue