[feature/attach-dl] Do not check for passworted forum when it's a PM.

PHPBB3-11042
This commit is contained in:
Andreas Fischer 2012-08-10 03:29:47 +02:00
parent 62305bec6d
commit 6dd0bd0bce

View file

@ -327,8 +327,10 @@ else if ($download_id)
else
{
// sizeof($attachments) >= 1
phpbb_download_handle_passworded_forum($db, $auth, $attachment['topic_id']);
if (!$attachment['in_message'])
{
phpbb_download_handle_passworded_forum($db, $auth, $attachment['topic_id']);
}
if (!class_exists('compress'))
{