diff options
author | Fyorl <gaelreth@gmail.com> | 2012-08-14 11:36:16 +0100 |
---|---|---|
committer | Fyorl <gaelreth@gmail.com> | 2012-08-14 11:36:16 +0100 |
commit | e8830c3369dbd4b25a4798eeb3fe2c7834825c42 (patch) | |
tree | 43e10593e149b84595fa242750463ea28d30818c /phpBB/includes | |
parent | 6da47555e040468e582ea73c501197d99689d07d (diff) | |
download | forums-e8830c3369dbd4b25a4798eeb3fe2c7834825c42.tar forums-e8830c3369dbd4b25a4798eeb3fe2c7834825c42.tar.gz forums-e8830c3369dbd4b25a4798eeb3fe2c7834825c42.tar.bz2 forums-e8830c3369dbd4b25a4798eeb3fe2c7834825c42.tar.xz forums-e8830c3369dbd4b25a4798eeb3fe2c7834825c42.zip |
[feature/attach-dl] Added docblock for renamed download_check_forum_auth
PHPBB3-11042
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/functions_download.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/phpBB/includes/functions_download.php b/phpBB/includes/functions_download.php index 4299ed47c5..22f217909c 100644 --- a/phpBB/includes/functions_download.php +++ b/phpBB/includes/functions_download.php @@ -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 |