diff --git a/src/schema/mutation/editResource.mutation.ts b/src/schema/mutation/editResource.mutation.ts index ca129f482..7de0e8e79 100644 --- a/src/schema/mutation/editResource.mutation.ts +++ b/src/schema/mutation/editResource.mutation.ts @@ -698,6 +698,17 @@ export default { obj.remove.role, permission ); + + // If we remove the canSee of a field, we should remove the canUpdate as well + if (permission === 'canSee') { + removeFieldPermission( + update, + allResourceFields, + obj.remove.field, + obj.remove.role, + 'canUpdate' + ); + } } } }