Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(nc-gui): field visibility error

Ramesh Manec5bb46e4bab6
diff --git a/packages/nc-gui/lib/form.ts b/packages/nc-gui/lib/form.ts
index ebce1cf72c..078aba82be 100644
--- a/packages/nc-gui/lib/form.ts
+++ b/packages/nc-gui/lib/form.ts
@@ -168,6 +168,15 @@ export class FormFilters {
res = true
}
+ if (!column.permissions?.isAllowedToEdit) {
+ console.log('column', column.title, column.permissions?.isAllowedToEdit)
+ errors[
+ column.fk_column_id
+ ] = `Condition references a field (${column.title}) that is not editable and will be hidden in shared form.`
+
+ res = true
+ }
+
if (!column?.visible) {
res = false
}