[Fix] Read only users should not be able to open a Relation picker (#10666)

## Context
ActivityTargetsInlineCell was not using the useIsFieldValueReadOnly hook
but a dedicated prop instead. To align with the rest of the
implementation I've updated that part of the code however we still want
the table/kanban views to always be in read-only mode regardless of the
hook logic so I've updated the hook to take the ContextStoreViewType
into account.
This commit is contained in:
Weiko
2025-03-05 13:56:58 +01:00
committed by GitHub
parent da0b0a9e3e
commit fd8b130df6
9 changed files with 102 additions and 42 deletions

View File

@ -95,7 +95,6 @@ export const NoteCard = ({
<ActivityTargetsInlineCell
activity={note}
activityObjectNameSingular={CoreObjectNameSingular.Note}
readonly
/>
</NoteTargetsContextProvider>
)}