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
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.