fix: guard is_authenticated dans cast_vote #94

This commit is contained in:
Colin Maudry
2026-06-30 14:37:54 +02:00
parent 78534000a0
commit 9a93ec986a
+2
View File
@@ -33,6 +33,8 @@ def layout(**_):
prevent_initial_call=True,
)
def cast_vote(n_clicks):
if not current_user.is_authenticated:
return no_update, no_update
if not ctx.triggered_id or not any(n_clicks):
return no_update, no_update
issue_number = ctx.triggered_id["index"]