Skip to content

Fix #1256: Require admin auth for global refunds listing - #1443

Open
davesshawns wants to merge 1 commit into
CalloraOrg:mainfrom
davesshawns:fix/1256-refunds-access
Open

davesshawns wants to merge 1 commit into
CalloraOrg:mainfrom
davesshawns:fix/1256-refunds-access

Conversation

@davesshawns

Copy link
Copy Markdown

Closes #1256

Restrict global refund listings to admins and scope regular users to their own refunds.

…d allow authenticated users to list only their own refunded disputes

- Require adminAuth for global refunds listing
- Allow authenticated users to list only their own refunded disputes using opened_by
- Ensure cache keys are scoped per user or admin to prevent data leakage
- Add POST handler for creating refunds with validation
- Export getRefundStore and clearRefundStore for test compatibility
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.

Restrict refunds listing to administrators

2 participants