mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 13:30:25 +02:00
[feature/attach-dl] Added docblock for renamed download_check_forum_auth
PHPBB3-11042
This commit is contained in:
@@ -614,7 +614,16 @@ function phpbb_increment_downloads($db, $ids)
|
||||
$db->sql_query($sql);
|
||||
}
|
||||
|
||||
function phpbb_download_handle_passworded_forum($db, $auth, $topic_id)
|
||||
/**
|
||||
* Checks that the user has permission to download attachments from the forum
|
||||
*
|
||||
* @param dbal $db The database object
|
||||
* @param phpbb_auth $auth The authentication object
|
||||
* @param int $topic_id The id of the topic that we are downloading from
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
function phpbb_download_check_forum_auth($db, $auth, $topic_id)
|
||||
{
|
||||
$sql = 'SELECT t.forum_id, f.forum_password, f.parent_id
|
||||
FROM ' . TOPICS_TABLE . ' t, ' . FORUMS_TABLE . " f
|
||||
|
Reference in New Issue
Block a user