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

fix: unecessary company CVs controller check #398

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

joaodiaslobo
Copy link
Member

The controller uses the function Accounts.list_company_attendees/1 which already validates the sponsor tier of the company and returns the corresponding attendees that should be shown (Exclusive, Gold -> ALL CVs + STAFFS | Silver, Bronze -> ONLY VISITORS + STAFFS). The has_cv check was preventing Bronze and Silver sponsors from accessing the endpoint and consequently made them unable to download staff cvs.

@joaodiaslobo joaodiaslobo self-assigned this Feb 6, 2024
@joaodiaslobo joaodiaslobo changed the title fix: unecessary company cvs controller check fix: unecessary company CVs controller check Feb 6, 2024
@joaodiaslobo joaodiaslobo merged commit 44cec74 into master Feb 7, 2024
2 checks passed
@joaodiaslobo joaodiaslobo deleted the jl/remove-unecessary-check branch February 7, 2024 09:26
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.

2 participants