Skip to content

Fix active-member authorization for expense payer - #473

Merged
K1NGD4VID merged 1 commit into
mergepay:mainfrom
69starman:issuefixed
Sep 2, 2026
Merged

Fix active-member authorization for expense payer#473
K1NGD4VID merged 1 commit into
mergepay:mainfrom
69starman:issuefixed

Conversation

@69starman

Copy link
Copy Markdown
Contributor

What does this PR do?

CLOSES #337

Checklist

  • npm run build passes
  • npm test passes (offline — DB/network mocked)
  • New endpoints validated with Zod + permission checks
  • Audit logs added for state-changing actions
  • Contract changes mirrored in mergepay-web
  • No secrets committed

Related issues

@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@69starman Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@mergekeeper

mergekeeper Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Needs changes

Authorization failures for group membership check violations must return 403 Forbidden instead of 400 Bad Request according to issue requirements.

  • src/routes/expenses.ts:50: Non-member check throws a 400 Bad Request error via Errors.badRequest, but the issue and acceptance criteria require returning 403 Forbidden for non-member restricted operations.

Reviewed commit: 238a494bb903be45bec17babc9afe1e135a76cce.

@mergekeeper mergekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs changes

Authorization failures for group membership check violations must return 403 Forbidden instead of 400 Bad Request according to issue requirements.

  • src/routes/expenses.ts:50: Non-member check throws a 400 Bad Request error via Errors.badRequest, but the issue and acceptance criteria require returning 403 Forbidden for non-member restricted operations.

Reviewed commit: 238a494bb903be45bec17babc9afe1e135a76cce.

@K1NGD4VID
K1NGD4VID merged commit 2fb3cf0 into mergepay:main Sep 2, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement strict group membership and admin role validation guards for expense settlement actions

2 participants