Skip to content

Commit 13ceb45

Browse files
adjust comment
1 parent eeb9b86 commit 13ceb45

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/libs/ReportUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2395,11 +2395,11 @@ function isPayer(session: OnyxEntry<Session>, iouReport: OnyxEntry<Report>, only
23952395
if (isPaidGroupPolicy(iouReport)) {
23962396
if (policy?.reimbursementChoice === CONST.POLICY.REIMBURSEMENT_CHOICES.REIMBURSEMENT_YES) {
23972397
if (!policy?.achAccount?.reimburser) {
2398-
// if there is a manager assigned we need to check if user is admin and manager to fix issue https://github.com/Expensify/App/issues/64825
2398+
// If there is a manager assigned, only allow payment if the user is both an admin and the manager.
2399+
// Otherwise, if there is no reimburser and no manager, only allow payment if the user is an admin.
23992400
if (iouReport?.managerID) {
24002401
return isAdmin && isManager;
24012402
}
2402-
// If we get here without a reimburser only show the pay button if we are the admin.
24032403
return isAdmin;
24042404
}
24052405

0 commit comments

Comments
 (0)