Skip to content

Commit

Permalink
Merge pull request #49178 from Expensify/revert-48998-fix/46762
Browse files Browse the repository at this point in the history
Revert "fix: admin can delete expenses"

(cherry picked from commit 8b77673)

(CP triggered by luacmartins)
  • Loading branch information
luacmartins authored and OSBotify committed Sep 13, 2024
1 parent c552b8f commit b5062d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/ReportDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD
report.stateNum !== CONST.REPORT.STATE_NUM.APPROVED &&
!ReportUtils.isClosedReport(report) &&
canModifyTask;
const canDeleteRequest = (isActionOwner || isPolicyAdmin) && (ReportUtils.canDeleteTransaction(moneyRequestReport) || isSelfDMTrackExpenseReport) && !isDeletedParentAction;
const canDeleteRequest = isActionOwner && (ReportUtils.canDeleteTransaction(moneyRequestReport) || isSelfDMTrackExpenseReport) && !isDeletedParentAction;
const shouldShowDeleteButton = shouldShowTaskDeleteButton || canDeleteRequest;

const canUnapproveRequest =
Expand Down

0 comments on commit b5062d9

Please sign in to comment.