Skip to content

Added validatePermissions for Surcharges query endpoints#6716

Closed
sujithvn wants to merge 2 commits intotrunkfrom
audit-validatePermissions
Closed

Added validatePermissions for Surcharges query endpoints#6716
sujithvn wants to merge 2 commits intotrunkfrom
audit-validatePermissions

Conversation

@sujithvn
Copy link
Contributor

Signed-off-by: Sujith mail.sujithvn@gmail.com

Resolves #6634
Impact: minor
Type: bugfix

Issue

As reported in issue #6634, Surcharges query endpoints were missing permission validation

Solution

Added validatePermissions call for both the queries [surcharges & surchargeById]

Breaking changes

If any user expected to have this permissions is not added to the required groups which has permission, will no longer be able to get results from these 2 queries unless added to the required groups.

Testing

Test caes added

Signed-off-by: Sujith <mail.sujithvn@gmail.com>
@changeset-bot
Copy link

changeset-bot bot commented Dec 16, 2022

🦋 Changeset detected

Latest commit: da3d8e9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@reactioncommerce/api-plugin-surcharges Patch
reaction Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Signed-off-by: Sujith <mail.sujithvn@gmail.com>
@brent-hoover brent-hoover removed the request for review from aldeed January 3, 2023 19:55
@delagroove delagroove closed this Sep 22, 2025
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.

Surchages query missing permission validation

4 participants