libfic: Can indicate that an exercice is WIP
This commit is contained in:
parent
4b8e447b1b
commit
c415e06237
10 changed files with 63 additions and 6 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue