Show poll prefix for guests (#1417)

* Show poll results for guests

* Update viewtopic.php

* Revert "Update viewtopic.php"

This reverts commit fd3f7021a3.

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-03-01 17:50:49 +07:00 committed by GitHub
commit d82c974a90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 3 deletions

View file

@ -508,7 +508,7 @@ $template->assign_vars([
'U_SEARCH_SELF' => "search.php?uid={$userdata['user_id']}&t=$topic_id&dm=1",
'TOPIC_HAS_POLL' => $topic_has_poll,
'POLL_IS_EDITABLE' => (!$poll_time_expired),
'POLL_IS_EDITABLE' => !$poll_time_expired,
'POLL_IS_FINISHED' => ($t_data['topic_vote'] == POLL_FINISHED),
'CAN_MANAGE_POLL' => $can_manage_poll,
'CAN_ADD_POLL' => $can_add_poll