diff --git a/app/templates/utils.html b/app/templates/utils.html index 38058cc..5311ed0 100644 --- a/app/templates/utils.html +++ b/app/templates/utils.html @@ -292,7 +292,8 @@ {% endif %} {% if object.ap_type == "Question" %} - {% if is_admin and object.is_from_inbox and not object.is_poll_ended and not object.voted_for_answers %} + {% set can_vote = is_admin and object.is_from_inbox and not object.is_poll_ended and not object.voted_for_answers %} + {% if can_vote %}