diff --git a/src/CONST.ts b/src/CONST.ts index f1e4a3bb46d5..a9160e606bd9 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -911,6 +911,7 @@ const CONST = { WRITE: 'write', SHARE: 'share', OWN: 'own', + AUDITOR: 'auditor', }, INVOICE_RECEIVER_TYPE: { INDIVIDUAL: 'individual', diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 506430b2e23d..eca764a67f25 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -1404,7 +1404,7 @@ function isJoinRequestInAdminRoom(report: OnyxEntry): boolean { */ function canWriteInReport(report: OnyxEntry): boolean { if (Array.isArray(report?.permissions) && report?.permissions.length > 0) { - return report?.permissions?.includes(CONST.REPORT.PERMISSIONS.WRITE); + return report?.permissions?.includes(CONST.REPORT.PERMISSIONS.WRITE) || (report?.permissions?.includes(CONST.REPORT.PERMISSIONS.AUDITOR) && isExpenseReport(report)); } return true;