# Topic Ratings Plugin

**URL:** <https://meta.discourse.org/t/topic-ratings-plugin/39578>\
**Category:** Plugin\
**Tags:** pavilion\
**Created:** [February 14, 2016, 9:06pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578 "2016-02-14T21:06:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)\
**Post date:** [February 15, 2016, 3:17pm UTC](https://meta.discourse.org/t/topic-ratings-plugin/39578/2 "2016-02-15T15:17:03Z")

</div>

Ok I’ve made a simple frontend exclusion of the ratings stars for users that have already posted in a ratings topic.

 ![](https://global.discourse-cdn.com/meta/original/3X/d/5/d511126e3350afbc947dbe6d170da252de403a46.png)

Ideally, I’d like to modify the topic and/or post guardians on the server to prevent a user from posting in a ratings topic twice. However, with my limited ruby skills, I can’t see an easy way to do this without just overriding the existing methods (assuming that’s possible this isn’t a very sustainable thing to do)… any ideas/tips? @sam

[Relevant topic guardian method](https://github.com/discourse/discourse/blob/master/lib/guardian/topic_guardian.rb#L21)

 ![](https://global.discourse-cdn.com/meta/original/3X/a/9/a94ef0937eee5a6c486035488fdc70c12c4b6c5b.png)

[Relevant post guardian method](https://github.com/discourse/discourse/blob/master/lib/guardian/post_guardian.rb#L75)

 ![](https://global.discourse-cdn.com/meta/original/3X/d/9/d9dc83522b0f39c9d35d8f801d2282f7c6e984b0.png)

---

_[View the full topic](https://meta.discourse.org/t/topic-ratings-plugin/39578)._
