We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90fd2c9 commit 020f248Copy full SHA for 020f248
1 file changed
src/libs/ReportUtils.ts
@@ -4211,6 +4211,10 @@ function canEditFieldOfMoneyRequest(
4211
const isAdmin = isExpenseReport(moneyRequestReport) && policy?.role === CONST.POLICY.ROLE.ADMIN;
4212
const isManager = isExpenseReport(moneyRequestReport) && currentUserAccountID === moneyRequestReport?.managerID;
4213
4214
+ if (fieldToEdit === CONST.EDIT_REQUEST_FIELD.REIMBURSABLE) {
4215
+ return (isAdmin || isManager) && !policy?.disabledFields?.reimbursable;
4216
+ }
4217
+
4218
if ((fieldToEdit === CONST.EDIT_REQUEST_FIELD.AMOUNT || fieldToEdit === CONST.EDIT_REQUEST_FIELD.CURRENCY) && isDistanceRequest(transaction)) {
4219
return isAdmin || isManager;
4220
}
0 commit comments