The main Problem:

Once the permission has been set, all anonymous users can rate content. But a user (one IP) can rate more than once!

Comments

ericduran’s picture

Status: Active » Closed (duplicate)
globexplorer’s picture

This is the problem function! There is no working implementation to prevent any user to vote for multiple times!

function _fivestar_cast_vote($type, $cid, $value, $tag = NULL, $uid = NULL, $result = FALSE, $skip_validation = FALSE) {

    // Get the user's current vote.
    $criteria = array('entity_type' => $type, 'entity_id' => $cid, 'tag' => $tag, 'uid' => $uid);
    // Get the unique identifier for the user (IP Address if anonymous).
    $user_criteria = votingapi_current_user_identifier();
    $user_votes = votingapi_select_votes($criteria + $user_criteria);

    if ($value == 0) {
      votingapi_delete_votes($user_votes);
    }
    else {
      $votes = $criteria += array('value' => $value);
      votingapi_set_votes($votes, $user_votes);      
    }
chaloalvarezj’s picture

Priority: Major » Critical

I am experiencing the same problem. Voting API is set to not allow votes from the same computer (anonymous user) for one day, yet I can vote as many times as I please!