I'm the administrator of my site (uid=1), and when I set the vote results to be private until the poll is over, I myself can't even see them.

By Drupal design, the administrator should always be able to see everything and have every permission, no matter what. I think this needs to have a permission associated with it, something like "view hidden poll results", or at the very least enable the administrator to be able to see them.

Comments

SpikeX’s picture

If you're not going to address the issue, could you at least point me in the right direction to where I could hack this in order to make it work?

anarcat’s picture

Status: Active » Fixed

fixed in CVS. you need the administer decisions permission.

SpikeX’s picture

Version: 6.x-1.3 » 6.x-1.5
Status: Fixed » Needs review

I run this on a production site, and I would rather not install a HEAD version. I'll wait for an official release.

It's not fixed in 6.x-1.5 (I upgraded). I don't see a "Votes" menu option, and manually visiting /node/###/votes returns an "Insufficient Permissions" error.

I'm the administrator (uid=1), so I have every permission on, all the time, yet this feature still doesn't work for me. Something isn't right.

"fixed in CVS." - What did you fix, exactly? And will this feature be fixed in 6.x-1.6?

ezra-g’s picture

Status: Needs review » Fixed

There is nothing to review here. If anarcat says a fix was committed, then you can either grab it from head or wait for the next release. If HEAD is more stable (aka, has this fixed) than the current release, then perhaps there isn't a reason to be wary of a HEAD release.

anarcat’s picture

Version: 6.x-1.5 » 6.x-1.3
Status: Fixed » Postponed (maintainer needs more info)

I fixed this bug in commit #323570. You need the "administer decisions" permission. Could you verify you have that permission?

SpikeX’s picture

I've said already that I am uid 1, the administrator of the site. Administrators are automatically granted every possible permission in the permission database, so there's no way that I couldn't have this permission.

Yes. I have it.

anarcat’s picture

Status: Postponed (maintainer needs more info) » Needs work

Okay, so the problem lies elsewhere, apparently. I fixed the _decisions_can_view_results function, and I assumed that was sufficient, it seems like it's not. I'll take a look if I can find the time... Patches welcome, as usual.

roball’s picture

Version: 6.x-1.3 » 6.x-1.x-dev
Status: Needs work » Fixed

I don't have this problem with the latest dev snapshot. A user having the "inspect all votes" permission will see the "Votes" tab (node/[NID]/votes), regardless of her UID, as long as the "Show individual votes" checkbox in the "Decision settings" at node/[NID]/edit is ticked.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.