dev_auth
p31729568 5 years ago
parent a7bc0911c3
commit 363ed577e5

@ -11,7 +11,7 @@ class Competitions::CertificatesController < Competitions::BaseController
end
def team
team = CompetitionTeam.find(id: params[:id])
team = CompetitionTeam.find(params[:id])
return render_forbidden unless team.team_members.exists?(user_id: current_user.id)
return render_not_found unless team.certificate_exist?

Loading…
Cancel
Save