Skip to content

Commit

Permalink
fix: permit destroy in all case
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoFgrx committed Dec 23, 2024
1 parent 591499c commit 4537f09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def attempt(cls, challenge, request):

msg = "Correct"

if challenge.destroy_on_flag and sourceId != 0:
if challenge.destroy_on_flag:
logger.info("destroy the instance")
try:
delete_instance(challenge.id, sourceId)
Expand Down

0 comments on commit 4537f09

Please sign in to comment.