Fixed with this line:

1075c1072
<   if ($node->voted && $node->cancel_vote && user_access('cancel own vote') && $node->active) {
---
>   if ($node->voted && $node->cancel_vote && user_access('cancel own vote')) {

Comments

anders.fajerson’s picture

Status: Active » Needs review

Thanks for the report and patch. Commited at http://drupal.org/cvs?commit=73713.

When committed I realized that this might be better moved into _advpoll_user_voted, i.e instead be checked by $node->cancel_vote. Let's get a second opinion on this when Chris is back.

ChrisKennedy’s picture

Hmm tough call. It's probably a little bit better to put it in _advpoll_user_voted to keep the checks centralized.

pomliane’s picture

Status: Needs review » Closed (won't fix)

This version of Advanced Poll is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.