[Configurable] Show magnet-links for guests (#1712)

* [Configurable] Show magnet links for guests

* Update mysql.sql

* Update legacy-changes.txt

* Updated

* Update main.php

* Update functions.php

* Updated

* Update viewforum.tpl

* Update viewtopic_attach.tpl

* Update viewforum.tpl

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-12-14 15:03:28 +07:00 committed by GitHub
commit 60899a0184
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 18 additions and 5 deletions

View file

@ -1812,7 +1812,7 @@ function create_magnet(string $infohash, string $infohash_v2, string $auth_key,
}
// Only for registered users
if (IS_GUEST && $bb_cfg['bt_tor_browse_only_reg']) {
if (!$bb_cfg['magnet_links_for_guests'] && IS_GUEST) {
return false;
}