diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-02-06 18:24:17 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-02-23 12:56:27 +0100 |
commit | cfc9b68b9359f3fb34c915647d354ed5c4ae236a (patch) | |
tree | 9c7056e89c00eb6346949d7f5b45ff701471881f /views | |
parent | a0fcb7dd40fbd55b9f28aecf3f9f5ca12e91b672 (diff) | |
download | server-cfc9b68b9359f3fb34c915647d354ed5c4ae236a.tar.gz |
Diffstat (limited to 'views')
-rw-r--r-- | views/tm_seed.pug | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/tm_seed.pug b/views/tm_seed.pug index 9902f4f..ea31a41 100644 --- a/views/tm_seed.pug +++ b/views/tm_seed.pug @@ -70,8 +70,8 @@ html form(method="post" action="/api/tm/withdraw/" + seed.seed_id + "/" + (ix+1)) button(disabled) Register button(type="submit") Withdraw - else if ix === 0 && may_register - form(method="post" action="/api/tm/register/" + seed.seed_id) + else if may_register && may_join_seed_level(user.user_id, seed.seed_id, ix+1) + form(method="post" action="/api/tm/register/" + seed.seed_id + "/" + (ix+1)) button(type="submit") Register button(disabled) Withdraw else |