On the machine where your Community service is installed, configure the DoubleRatingValidator in the cd_ugc_conf.xml configuration file to disable multiple ratings by the same visitor on the same item altogether, or to enforce a minimum interval between ratings on the same item by the same visitor.
Procedure
- Access the configuration location of the Community service.
- Open the cd_ugc_conf.xml configuration file for editing.
- Uncomment the
<ContentValidators> section, if commented out.
- Uncomment the Double Rating Validator:
<ContentValidator Implementation="com.sdl.web.ugc.validation.DoubleRatingValidator">
<Timeout>-1</Timeout>
</ContentValidator>
- The
<Timeout> element specifies the allowed interval between two ratings by the same visitor on the same item. Configure the <Timeout> element as follows:
- set the
<Timeout> element to a different number of milliseconds, for example 60000 (milliseconds = 1 minute)
- set the
<Timeout> element to -1 (the default) to disallow more than one rating by the same visitor on the same item.
- Save and close cd_ugc_conf.xml.
- Restart the Community service.