Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added validatePermissions for Surcharges query endpoints #6716

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

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>
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
3 participants