In decisions.module, there is a line that references: $node->voted
This should be updated to just be: $node->vote
function _decisions_can_view_results($node) {
$node = node_load($node->nid);
$view_results = variable_get('decisions_view_results', DECISIONS_DEFAULT_VIEW_RESULTS);
return user_access('administer decisions') || (_decisions_meets_quorum($node) &&
strpos($node->type, 'decisions_') === 0 &&
// node is closed
(!_decisions_is_open($node)
// user voted
|| ($node->vote && $view_results == 'aftervote')
// all can view
|| ($view_results == 'always'))
);
}
Comments
Comment #1
ezra-g commentedThanks for pointing this out! I'll commit this fix on or by Tuesday.
Comment #2
ezra-g commentedActually, this is already fixed in dev ;). See #743198: Anonymous users can't view results.