in Line 528, inside the pollfield_perm() function, the permissions array is wrongly defined.
Instead of 'vote on polls' it should be 'vote on pollfields' as it is the latter which is used across the module.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | pollfield.module.139085.patch | 435 bytes | jaydub |
Comments
Comment #1
Anonymous (not verified) commentedConfirmed. Change Line 515 / 520 to this
/**
* Implementation of hook_perm().
*/
function pollfield_perm() {
return array('vote on pollfields', 'cancel own pollfield vote', 'inspect all pollfield votes');
}
Comment #2
dgraver commentedThe 'inspect all votes' option does not seem to work for my site. Please go to http://www.whotobet.net and click on one of the games, and you will see that users cannot see other user's votes. Is there somewhere else other than the admin section that I need to set "Inspect all pollfield votes" ?
Comment #3
dgraver commentedOK...I think I figured out the problem.
This first line ($result) only returns one nid, and therefore when the 3rd line runs its 'if' statement, it only compares the node id to one other nid instead of all the nid's in pollfield table. I've updated it using the following code:
I've tested it a couple times, and it looks OK. Please let me know if this is alright.
Comment #4
jaydub commentedThis patch is for the original bug report. The user reporting the other problem should submit that bug as a separate issue....
Comment #5
karens commentedBoth of these problems should now be fixed. Thanks for all the help!
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.