Replace field.locked by field.editable, field.deleteable, fieldinstance.editable, fieldinstance.deleteable

Created on 2 October 2011, about 13 years ago
Updated 28 February 2023, over 1 year ago

The locked attribute of a field (not instance!) is much too strict. You might want to allow the user to edit the instance field Label, but not delete it (enter fieldinstance.editable and fieldinstance.deleteable). Currently it's all or nothing:

* All: user can delete and edit the field instance and the field itself (too much power)
* Nothing: user can't delete or edit field instance nor field (no power at all)

If you want the user to be able to edit the instance (eg Label), you must set locked to 0 and then 'manually' prevent all other actions with nasty meaningless form alters.

The infrastructure for this practically exists. A small database update and a small code update in core/field_ui should do it.

Feature request
Status

Active

Version

10.1

Component
Field 

Last updated about 15 hours ago

Created by

🇳🇱Netherlands rudiedirkx

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024