feat: Added ability to hide peer username in peer list (#1903)

* Added ability to hide peer username in peer list

* Updated
This commit is contained in:
Roman Kelesidis 2025-05-06 20:04:17 +03:00 committed by GitHub
commit 3a64f8595c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 23 additions and 8 deletions

View file

@ -367,6 +367,7 @@ foreach ($profile_fields as $field => $can_edit) {
'user_retracker' => $reg_mode ? true : true,
'user_hide_torrent_client' => $reg_mode ? true : true,
'user_hide_peer_country' => $reg_mode ? true : $bb_cfg['ip2country_settings']['enabled'],
'user_hide_peer_username' => $reg_mode ? false : true,
];
foreach ($update_user_opt as $opt => $can_change_opt) {