Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

More than one review from the same user

Quote Reply
More than one review from the same user
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:

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. Wink
Subject Author Views Date
Thread More than one review from the same user Volker 4745 Oct 23, 2005, 5:41 AM
Thread Re: [Volker] More than one review from the same user
Andy 4612 Oct 23, 2005, 11:43 PM
Thread Re: [Andy] More than one review from the same user
Volker 4607 Oct 24, 2005, 1:34 AM
Thread Re: [Volker] More than one review from the same user
Jag 4578 Oct 24, 2005, 2:14 PM
Thread Re: [Jag] More than one review from the same user
Volker 4593 Oct 24, 2005, 3:05 PM
Thread Re: [Volker] More than one review from the same user
Jag 4587 Oct 24, 2005, 3:21 PM
Post Re: [Jag] More than one review from the same user
Volker 4559 Oct 24, 2005, 3:30 PM
Post Re: [Volker] More than one review from the same user
Volker 4512 Dec 27, 2005, 2:49 AM