|
|
@ -11,7 +11,7 @@ class Competitions::CertificatesController < Competitions::BaseController
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def team
|
|
|
|
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_forbidden unless team.team_members.exists?(user_id: current_user.id)
|
|
|
|
return render_not_found unless team.certificate_exist?
|
|
|
|
return render_not_found unless team.certificate_exist?
|
|
|
|
|
|
|
|
|
|
|
|