Skip to content

[2.1 & 3.0]: Users cannot turn off word censoring when admin allows them to #8810

@Oldiesmann

Description

@Oldiesmann

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

  1. Go to Admin -> Forum -> Posts and Topics -> Censored Words
  2. Check the box next to the "Allow users to disable word censoring" option and save the settings.
  3. 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.

Image

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.

'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;
},
),

Metadata

Metadata

Assignees

No one assigned

    Labels

    RegressionA recent change has introduced a new bug.Theme

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions