libfic: implement more dependancies kind
This commit is contained in:
parent
ff3dec059c
commit
5d31ac6e04
5 changed files with 93 additions and 8 deletions
|
|
@ -232,6 +232,11 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
|
|||
return nil, err
|
||||
} else {
|
||||
for _, mcq := range mcqs {
|
||||
if t != nil && !t.CanSeeFlag(mcq) {
|
||||
// Dependancy missing, skip the flag for now
|
||||
continue
|
||||
}
|
||||
|
||||
m := myTeamMCQ{
|
||||
Title: mcq.Title,
|
||||
Choices: map[int64]interface{}{},
|
||||
|
|
|
|||
Reference in a new issue