Update app/routes/colles.tsx
All checks were successful
Deploy to Netlify / Deploy to Netlify (push) Successful in 1m12s

This commit is contained in:
Nathan 2026-02-08 21:12:33 +01:00
parent 27dd6e5857
commit 316875afdc

View file

@ -108,7 +108,7 @@ export default function ColleDetailPage() {
}
// Mathématiques
if (colle.subject.name === "Mathématiques") {
if (colle.subject.name === "Mathématiques" && (user.className == "MP-1" || user.className == "MP-2")) {
const week = getColleWeek(new Date(colle.date)); // Syllabus weeks are 1-indexed
if (week)
return "http://www.mp1.bginette.com/Colles/ColleXX.pdf".replace(