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

Feat/add missing arborist checks #87

Merged
merged 6 commits into from
Jan 30, 2024

Conversation

pieterlukasse
Copy link
Contributor

@pieterlukasse pieterlukasse commented Jan 26, 2024

Jira Ticket: VADC-899

Bug Fixes

  • Add missing authorization checks for RetriveStatsBySourceIdAndTeamProject and RetriveById methods
  • Ensure "access denied" errors return StatusForbidden instead of StatusBadRequest

...to ensure 403 is returned when TeamProjectValidationForCohort returns false
...to ensure 403 is returned when HasAccessToTeamProject returns false
Copy link
Contributor

@tianj7 tianj7 left a comment

Choose a reason for hiding this comment

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

one minor comment regard test name

tests/middlewares_tests/middlewares_test.go Outdated Show resolved Hide resolved
@pieterlukasse pieterlukasse merged commit 5e1839b into master Jan 30, 2024
10 of 11 checks passed
@pieterlukasse pieterlukasse deleted the feat/add_missing_arborist_checks branch January 30, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants