jonnsl / sliComments

Comments component for Joomla! 1.6
GNU General Public License v3.0
16 stars 5 forks source link

Restricting Guests to just 1 vote on each comment #37

Closed iseo closed 12 years ago

iseo commented 12 years ago

Looking at the code there seems to be a method of only allowing the Public/Guests to vote once on each comment - by recording the IP address. How is this enabled?

I'm referring to models/commnets.php

https://github.com/jonnsl/sliComments/blob/master/components/com_slicomments/models/comments.php#L432-L471

jonnsl commented 12 years ago

if guests have permission to rate comments, their ip will be record for a while to prevent more than 1 vote per comment, but after some time that IP will be deleted from the database to allow guests with that same IP to vote again, because IPs are dynamics.