Skip to content

Commit f00ee90

Browse files
committed
🐞 fix(api/container_service): remove challenge solved verification
1 parent c487e50 commit f00ee90

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

server/router/api/v1/container_service.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ func CreateChallengeContainer(c echo.Context) error {
5050
return Failed(&c, "You are not in a team.")
5151
}
5252

53-
if challenge.IsSolvedBy(team, ctx.Store) {
54-
return Failed(&c, "You have solved this challenge.")
55-
}
53+
// the container is still allowed to be created after the challenge is solved
54+
// if challenge.IsSolvedBy(team, ctx.Store) {
55+
// return Failed(&c, "You have solved this challenge.")
56+
// }
5657

5758
flag := fmt.Sprintf("%s{%s}", challenge.Game.FlagPrefix, util.GenerateFlagContent(challenge.FlagFormat, user.UUID))
5859

0 commit comments

Comments
 (0)