Skip to content

Commit f3cd44f

Browse files
MelvinBotdmkt9
andcommitted
Also check isEditable when setting canEdit for violation message
Co-authored-by: dmkt9 <dmkt9@users.noreply.github.com>
1 parent c5d2347 commit f3cd44f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/ReportActionItem/MoneyRequestReceiptView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ function MoneyRequestReceiptView({
274274
const violationMessage = ViolationsUtils.getViolationTranslation({
275275
violation,
276276
translate,
277-
canEdit: isActionTakenByCurrentUser,
277+
canEdit: isActionTakenByCurrentUser && isEditable,
278278
companyCardPageURL,
279279
connectionLink,
280280
card,

0 commit comments

Comments
 (0)