-
Notifications
You must be signed in to change notification settings - Fork 270
Closed
Copy link
Labels
Milestone
Description
Basic Information
When the admin enables the option to allow users to turn off word censoring, that option doesn't show up in the user's profile, whether looking at the options as an admin or as the user themselves.
Steps to reproduce
- Go to Admin -> Forum -> Posts and Topics -> Censored Words
- Check the box next to the "Allow users to disable word censoring" option and save the settings.
- Go to the look and layout section of any user's profile
Expected result
The option to turn off word censoring should be there
Actual result
No such option appears.
Version/Git revision
2.1.6
Database Engine
All
Database Version
No response
PHP Version
No response
Logs
Additional Information
In 2.1, the code to display the option is still there. I haven't checked 3.0 yet but I would assume similar code exists in that version as well.
SMF/Sources/Profile-Modify.php
Lines 556 to 571 in a0bb207
| 'theme_settings' => array( | |
| 'type' => 'callback', | |
| 'callback_func' => 'theme_settings', | |
| 'permission' => 'profile_extra', | |
| 'is_dummy' => true, | |
| 'preload' => function() use (&$context, $user_info, $modSettings) | |
| { | |
| loadLanguage('Settings'); | |
| $context['allow_no_censored'] = false; | |
| if ($user_info['is_admin'] || $context['user']['is_owner']) | |
| $context['allow_no_censored'] = !empty($modSettings['allow_no_censored']); | |
| return true; | |
| }, | |
| ), |
Reactions are currently unavailable