Option to disable the message on the user edit form that indicates what's been protected from edits

Created on 15 May 2024, about 1 month ago
Updated 5 June 2024, 23 days ago

Problem/Motivation

When editing a user as an admin (has the permission "administer users"), user protect applies protections and then outputs a message that says "%user has been protected from the following editing operations: @operations".

I'd like to disable this message on my site. We give the "administer users" permission to people on our sites that may be confused by the message. I can see how this message might be useful in some cases, like for user-specific protections, but for role-based protections which I use, it's not that helpful.

Steps to reproduce

Proposed resolution

Introduce a config option for the module that controls if this message is shown or not.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bkosborne New Jersey, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @bkosborne
  • πŸ‡³πŸ‡±Netherlands MegaChriz

    Sounds reasonable to add a config option like that. I think that a global configuration option for this would make the most sense? That means we need a userprotect.settings config object and a form to set the configuration. And of course the set configuration needs to be respected in userprotect_form_user_form_alter().

Production build 0.69.0 2024