Closed (fixed)
Project:
jRating
Version:
5.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
8 Mar 2007 at 18:07 UTC
Updated:
28 Mar 2007 at 15:01 UTC
It is allowing anonymous users to vote, and adjusting the average vote accordingly, but it is not counting the vote into the number of votes field.
Comments
Comment #1
hickory commentedIt shouldn't be allowing anonymous users to vote. Did you change something in the module?
Comment #2
marcingy commentedI work with the person who raised this issue. There is an option within the admin screens to Display rating form for anonymous users. When this is set to yes it allows anonymous votes to be submitted. Nothing has been changed in the module.
Comment #3
hickory commentedIt shouldn't allow votes to be submitted for anonymous users.
Comment #4
hickory commentedWhat should happen: when an anonymous user submits a rating they get a message saying "unauthorised: please login or register", which then leads them back to the node to vote when they've logged in.
Comment #5
marcingy commentedThe only issue with this is that under access control you can set the anonymous user as being allowed to rate content then the test in jrating_form_submit for user access will be passed.
line 221
if (user_access('rate content')){
}
Maybe a test should also be made here to ensure that $user->uid != 0. Otherwise any attempt to submit a vote for an anonyomus user will be successful if the permission has been enabled and the rating form is displayed.
Comment #6
hickory commentedGood point - I'll fix that.
Comment #7
hickory commentedShould be fixed now in CVS.
Comment #8
(not verified) commented