Partially reverted 3f03556
authorAlexander Ebert <ebert@woltlab.com>
Sat, 19 May 2018 18:45:37 +0000 (20:45 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 19 May 2018 18:45:37 +0000 (20:45 +0200)
com.woltlab.wcf/templates/poll.tpl

index 0ecd3aa7dc02d75d169391c76316b34593720171..f95bcb514ffc954aa17c6cc8da1681b0a14e16d6 100644 (file)
@@ -35,7 +35,7 @@
        </section>
        
        {hascontent}
-               <div class="formSubmit jsOnly"{if !$poll->canVote() && $__pollView === 'result'} style="display: none"{/if}>
+               <div class="formSubmit jsOnly"{if !$poll->canVote() && $__pollView === 'result' && !$poll->canSeeResult()} style="display: none"{/if}>
                        {content}
                                {if $__wcf->getUser()->userID}
                                        <button class="small jsButtonPollVote"{if $poll->canVote()} disabled{else} style="display: none;"{/if}>{lang}wcf.poll.button.vote{/lang}</button>
@@ -50,4 +50,4 @@
                        {/content}
                </div>
        {/hascontent}
-</div>
\ No newline at end of file
+</div>