diff --git a/CHANGELOG.md b/CHANGELOG.md index 3955c4369..72c10d242 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - Added preview for country flags while editing [\#1448](https://github.com/torrentpier/torrentpier/pull/1448) ([belomaxorka](https://github.com/belomaxorka)) - Added support for APCu caching method [\#1442](https://github.com/torrentpier/torrentpier/pull/1442) ([belomaxorka](https://github.com/belomaxorka)) - Some enhancements [\#1445](https://github.com/torrentpier/torrentpier/pull/1445) ([belomaxorka](https://github.com/belomaxorka)) +- Guests can view polls [\#1464](https://github.com/torrentpier/torrentpier/pull/1464) ([belomaxorka](https://github.com/belomaxorka)) - Improved app debug [\#1438](https://github.com/torrentpier/torrentpier/pull/1438) ([belomaxorka](https://github.com/belomaxorka)) - Fixed quote selection for smiles [\#1457](https://github.com/torrentpier/torrentpier/pull/1457) ([belomaxorka](https://github.com/belomaxorka)) - Demo mode: Allow registering torrents by default [\#1440](https://github.com/torrentpier/torrentpier/pull/1440) ([belomaxorka](https://github.com/belomaxorka)) diff --git a/styles/templates/default/viewtopic_poll.tpl b/styles/templates/default/viewtopic_poll.tpl index a6d639954..02fe6074e 100644 --- a/styles/templates/default/viewtopic_poll.tpl +++ b/styles/templates/default/viewtopic_poll.tpl @@ -127,8 +127,10 @@ function html2text (str)
+
[ {L_SUBMIT_VOTE} ]
+
[ {L_NEW_POLL_END} ]
diff --git a/viewtopic.php b/viewtopic.php index 0c69d24f7..6b8c613d8 100644 --- a/viewtopic.php +++ b/viewtopic.php @@ -438,7 +438,7 @@ $sel_post_order_ary = [ $lang['NEWEST_FIRST'] => 'desc' ]; -$topic_has_poll = ($t_data['topic_vote'] && !IS_GUEST); +$topic_has_poll = $t_data['topic_vote']; $poll_time_expired = ($t_data['topic_time'] < TIMENOW - $bb_cfg['poll_max_days'] * 86400); $can_manage_poll = ($t_data['topic_poster'] == $userdata['user_id'] || $is_auth['auth_mod']); $can_add_poll = ($can_manage_poll && !$topic_has_poll && !$poll_time_expired && !$start);