Results tab not displayed

wonder95 - August 11, 2009 - 21:12
Project:Advanced Poll
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

I've created two polls, and when logged in as a user that has rights to view results, there is no Results tab. I get the Votes tab, though. There are no other modules (such as Decisions) that would conflict with this as far as I know.

#1

Roger Saner - November 4, 2009 - 17:29
Status:active» needs review

I had the same thing. What's happening is there is incorrect logic within the function which checks if the results tab should be displayed.

Firstly, it only displays the results tab if the current user has voted on the poll (it shouldn't) and secondly, it doesn't even check if the user has the 'inspect all votes' permission.

I've attached a patch to fix it.

AttachmentSize
patch_546518.patch 518 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.