Skip to content

Commit 4c155ef

Browse files
authored
Merge pull request #1260 from jetstreamapp/bug/1248-2
Ensure compound fields allow edit modification in permission manager
2 parents 26c04ad + 919a013 commit 4c155ef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libs/features/manage-permissions/src/utils/permission-manager-table-utils.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,8 +688,8 @@ export function getFieldRows(
688688
label: fieldPermission.label,
689689
tableLabel: `${fieldPermission.label} (${fieldPermission.apiName})`,
690690
type: fieldPermission.metadata.DataType,
691-
// formula fields and auto-number fields do not allow editing
692-
allowEditPermission: !fieldPermission.metadata.IsCompound && fieldPermission.metadata.IsUpdatable,
691+
// Compound fields (e.x. BillingAddress) show up as non-editable, but they are editable
692+
allowEditPermission: fieldPermission.metadata.IsCompound || fieldPermission.metadata.IsUpdatable,
693693
permissions: {},
694694
};
695695

0 commit comments

Comments
 (0)