Update app/routes/colles.tsx
All checks were successful
Deploy to Netlify / Deploy to Netlify (push) Successful in 1m12s
All checks were successful
Deploy to Netlify / Deploy to Netlify (push) Successful in 1m12s
This commit is contained in:
parent
27dd6e5857
commit
316875afdc
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ export default function ColleDetailPage() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mathématiques
|
// 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
|
const week = getColleWeek(new Date(colle.date)); // Syllabus weeks are 1-indexed
|
||||||
if (week)
|
if (week)
|
||||||
return "http://www.mp1.bginette.com/Colles/ColleXX.pdf".replace(
|
return "http://www.mp1.bginette.com/Colles/ColleXX.pdf".replace(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue