Skip to content

Commit

Permalink
fix: unecessary company cvs controller check
Browse files Browse the repository at this point in the history
  • Loading branch information
joaodiaslobo committed Feb 6, 2024
1 parent 76ac0bd commit 851ffd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/safira_web/controllers/cv_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ defmodule SafiraWeb.CVController do

company = Accounts.get_company!(company_id)

if Accounts.is_admin(conn) or (curr_company_id == company.id and company.has_cv_access) do
if Accounts.is_admin(conn) or curr_company_id == company.id do
zip =
Accounts.list_company_attendees(company_id)
|> Enum.concat(Accounts.list_staffs())
Expand Down

0 comments on commit 851ffd9

Please sign in to comment.