Allow modifying views with readonly configs (other fields)
This commit is contained in:
parent
efc9d3399e
commit
326a90a41e
|
@ -54,7 +54,10 @@ async function guardViewSchema(
|
||||||
}
|
}
|
||||||
|
|
||||||
if (viewSchema[field].readonly) {
|
if (viewSchema[field].readonly) {
|
||||||
if (!(await features.isViewReadonlyColumnsEnabled())) {
|
if (
|
||||||
|
!(await features.isViewReadonlyColumnsEnabled()) &&
|
||||||
|
!(tableSchemaField as ViewUIFieldMetadata).readonly
|
||||||
|
) {
|
||||||
throw new HTTPError(`Readonly fields are not enabled`, 400)
|
throw new HTTPError(`Readonly fields are not enabled`, 400)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue