mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 11:47:01 +00:00
fix(nc-gui): hide field from shared form if user don't have edit permission
This commit is contained in:
@@ -128,7 +128,9 @@ const [useProvideSharedFormStore, useSharedFormStore] = useInjectionState((share
|
||||
columns.value?.filter((col) => {
|
||||
const isVisible = col.show
|
||||
|
||||
return isVisible && supportedFields(col)
|
||||
const isAllowedToEdit = isAllowed(PermissionEntity.FIELD, col.id!, PermissionKey.RECORD_FIELD_EDIT)
|
||||
|
||||
return isVisible && supportedFields(col) && isAllowedToEdit
|
||||
}) || [],
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user