Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
Rely on can_rate for review logic (bug 871484)
Browse files Browse the repository at this point in the history
It's always there. Didn't know that.
  • Loading branch information
mattbasta committed May 13, 2013
1 parent 918dfdf commit 12cd2a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hearth/templates/detail/main.html
Expand Up @@ -102,7 +102,7 @@ <h3>{{ _('Reviews') }}</h3>
{{ _('App not yet rated') }}
</p>
{% endif %}
{% if not user.logged_in() or this.user.can_rate or this.user.has_rated %}
{% if this.user.can_rate or this.user.has_rated %}
<div class="{{ 'split' if this.objects.length else ' full' }}">
{% if user.logged_in() and this.user.has_rated %}
<a class="button alt" id="edit-review" href="{{ url('app/ratings/edit', [slug]) }}">
Expand Down

0 comments on commit 12cd2a9

Please sign in to comment.