Open tristanrobert opened 5 days ago
There is already a prop in UI model: https://github.com/gristlabs/grist-core/blob/e43bb670a0fa03b2e8b1b3ca153621290e992bdd/app/client/models/entities/ColumnRec.ts#L73
Thanks for the feature request! Let me attempt to categorize the various things that are possible that maybe shouldn't always be possible. For terminology, I'll say "data column" to mean "column that's not a formula column".
The last 3 can be blocked by denying "edit structure" permission in the "Special rules" section of access rules. But this would apply to the whole document, not per column.
I see several related but slightly different options for what we could do:
Perhaps there is a better combination than these. Of the ones here, I'd lean towards 2.
It's also possible that would could additionally create some UI where you could keep the column read-only, and allow owners to "bypass protection temporarily", i.e. rather than remove the rule (which would create a window where others could make a change), the bypass would create an extra permission just for this owner's current session. I could see that being useful at other levels of granularity too, e.g. to lock down a whole table or document for everyone, and still allow owners to bypass the lock to make changes.
Describe the problem to be solved
Owners have access to edit formula but when they edit data in a row with formula, they could erase formula. A discussion here : https://community.getgrist.com/t/make-formula-columns-write-protected/6345
Describe the solution you would like
Add a toggle/check in column formula options in order to able/disable formula editing.