Closed (duplicate)
Project:
Decisions
Version:
6.x-1.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2010 at 01:16 UTC
Updated:
29 Mar 2010 at 19:38 UTC
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.