Add a disabled state to exercices
This commit is contained in:
parent
0f41e44e13
commit
eb85b28f5b
10 changed files with 33 additions and 17 deletions
|
|
@ -120,7 +120,7 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
|
|||
return ret, err
|
||||
} else if started {
|
||||
for _, e := range exos {
|
||||
if t == nil || t.HasAccess(e) {
|
||||
if t == nil || (!e.Disabled && t.HasAccess(e)) {
|
||||
exercice := myTeamExercice{}
|
||||
exercice.WIP = e.WIP
|
||||
exercice.ThemeId = e.IdTheme
|
||||
|
|
|
|||
Reference in a new issue