Strange behavior in the IP validation from at poll lists
Strange behavior in the IP validation from at poll lists
Hello,
Looking the code I found one thing that I don't quite understand. I configure the module validation to look only Ip Address (at backend -> configuration -> Vote Restriction Method checked to "IP Address")
Then I go to see the polls at polls list i see all the polls avaliable to vote (with the green icon), even i have voted or not.
This is because when the Community Polls goes to see if a poll is eligible the system launches the function traceEligibility (for example, at component -> views-> sirimalli->view.html.php->display function) with the param skipDB hardcoded to true. This does not make the ip validation.
Testing it, i've changed the param skipDB to true when CommPoll chooses the elegibility and then it checks well the IPs for guests.
Is this an appropiate behavior, or it's a bug?
Regards.
L.
Looking the code I found one thing that I don't quite understand. I configure the module validation to look only Ip Address (at backend -> configuration -> Vote Restriction Method checked to "IP Address")
Then I go to see the polls at polls list i see all the polls avaliable to vote (with the green icon), even i have voted or not.
This is because when the Community Polls goes to see if a poll is eligible the system launches the function traceEligibility (for example, at component -> views-> sirimalli->view.html.php->display function) with the param skipDB hardcoded to true. This does not make the ip validation.
Testing it, i've changed the param skipDB to true when CommPoll chooses the elegibility and then it checks well the IPs for guests.
Is this an appropiate behavior, or it's a bug?
Regards.
L.
Access to viewing replies is restricted.
Showing 3 of 3 replies
You do not have permissions for replying to this topic.