mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-23 22:55:46 -07:00
Maked configurable email visibility for everybody (#936)
This commit is contained in:
parent
64112bca8b
commit
c57ddd4621
3 changed files with 3 additions and 2 deletions
|
@ -415,6 +415,7 @@ $bb_cfg['topic_notify_enabled'] = true;
|
|||
$bb_cfg['pm_notify_enabled'] = true;
|
||||
$bb_cfg['group_send_email'] = true;
|
||||
$bb_cfg['email_change_disabled'] = false; // TODO: disable changing email by user
|
||||
$bb_cfg['show_email_visibility_settings'] = true; // разрешать ли пользователям изменять свои настройки отображения почты (Скрыто или нет)
|
||||
|
||||
$bb_cfg['bounce_email'] = "bounce@$domain_name"; // bounce email address
|
||||
$bb_cfg['tech_admin_email'] = "admin@$domain_name"; // email for sending error reports
|
||||
|
|
|
@ -322,7 +322,7 @@ foreach ($profile_fields as $field => $can_edit) {
|
|||
|
||||
$update_user_opt = [
|
||||
# 'user_opt_name' => ($reg_mode) ? #reg_value : #in_login_change
|
||||
'user_viewemail' => $reg_mode ? false : true,
|
||||
'user_viewemail' => $reg_mode ? false : (IS_ADMIN || $bb_cfg['show_email_visibility_settings']),
|
||||
'user_viewonline' => $reg_mode ? false : true,
|
||||
'user_notify' => $reg_mode ? true : true,
|
||||
'user_notify_pm' => $reg_mode ? true : true,
|
||||
|
|
|
@ -210,7 +210,7 @@
|
|||
<!-- ENDIF -->
|
||||
</tr>
|
||||
|
||||
<!-- IF IS_ADMIN -->
|
||||
<!-- IF IS_ADMIN || $bb_cfg['show_email_visibility_settings'] -->
|
||||
<tr>
|
||||
<td class="prof-title">{L_PUBLIC_VIEW_EMAIL}:</td>
|
||||
<td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue