Skip to content

Commit

Permalink
Ensure addon owners cannot write reviews (bug 663867)
Browse files Browse the repository at this point in the history
  • Loading branch information
potch committed Jun 28, 2011
1 parent 9103fa5 commit c202dac
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/addons/templates/addons/impala/details.html
Expand Up @@ -136,9 +136,12 @@ <h2>{{ _('About this Add-on') }}</h2>
{{ _('Average') }}
</div>
{% include "reviews/grouped_ratings.html" %}
<div>
<a class="button" id="add-review" href="{{ url('reviews.add', addon.slug) }}">{{ _('Write a review') }}</a>
</div>
{% set amo_user = user.get_profile() if user.is_authenticated() else None %}
{% if not addon.has_author(amo_user) %}
<div>
<a class="button" id="add-review" href="{{ url('reviews.add', addon.slug) }}">{{ _('Write a review') }}</a>
</div>
{% endif %}
<a id="report-abuse" href="{{ remora_url('developers/docs/policies/contact') }}"
class="abuse-image">{{ _('Report Abuse') }}</a>
</aside>
Expand Down

0 comments on commit c202dac

Please sign in to comment.