libfic: Can indicate that an exercice is WIP

This commit is contained in:
nemunaire 2022-11-05 15:26:57 +01:00
commit c415e06237
10 changed files with 63 additions and 6 deletions

View file

@ -146,6 +146,12 @@ func (t *Team) HasAccess(e *Exercice) bool {
if err != nil {
return false
}
// If our previous exercice is WIP, unlock
if i == UnlockedChallengeDepth && e.WIP {
return true
}
}
return false
}