Skip to content

Commit

Permalink
Prevent editing species of draft challenges
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkohei13 committed Jan 2, 2025
1 parent 5f3c655 commit 84b8294
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/participation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

def make_species_html(id, fin, swe, sci, min_date, max_date, date, challenge_status):

# Readonly if participation is closed
# Readonly if participation is closed or draft
readonly_value = ""
if "closed" == challenge_status:
if challenge_status != "open":
readonly_value = "readonly"

id_html = id.replace(".", "_").replace(" ", "")
Expand Down

0 comments on commit 84b8294

Please sign in to comment.