I'm using the review system for comments on my site.
Since a logged in user can not add more than one review to a link, I'd like to find a way to bypass this. There is on part in Review.pm which checks if the user has already added a review:
301 if ($USER and $db->count({ Review_LinkID => $id, Review_Owner => $USER->{Username} })) {
302 return { error => Links::language('REVIEW_ADD_WAIT', $id) };
303 }
Would it be enough to remove that block? Will there be any side effects if a user has multiple reviews for a link in the database? I can not test this at the moment, so I'm hesitating to screw up my production system.
Since a logged in user can not add more than one review to a link, I'd like to find a way to bypass this. There is on part in Review.pm which checks if the user has already added a review:
Code:
300 # Check if this user already added review for the link, it could be an invalid adding action 301 if ($USER and $db->count({ Review_LinkID => $id, Review_Owner => $USER->{Username} })) {
302 return { error => Links::language('REVIEW_ADD_WAIT', $id) };
303 }
Would it be enough to remove that block? Will there be any side effects if a user has multiple reviews for a link in the database? I can not test this at the moment, so I'm hesitating to screw up my production system.
