Add permission to use the clear values button

Created on 7 May 2025, 8 days ago

Problem/Motivation

Just accidentally clicked the 'clear values' button while testing something locally. I know for a fact that at some point a client will do this and hit the 'yes' button on the next page without reading it! It would be nice to remove the permission to perform this action for my site editors!

Steps to reproduce

  1. Add loads of data on a config page.
  2. Click the 'clear values' button.
  3. Ignore the lovely warning that is presented because you're in a rush.
  4. Oh no! The data is gone
  5. Run away and cry (optional)

Proposed resolution

Add a permission to clear values so that is can be given to trusted users at the discretion of the site administrator.

User interface changes

The button will be removed by default until the permission is added.

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom darren.fisher

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024