Skip to content

Commit

Permalink
Cache les boutons Spam potentiel et Réponse utile pour les messages m…
Browse files Browse the repository at this point in the history
…asqués
  • Loading branch information
Situphen committed Mar 4, 2021
1 parent 408f104 commit be9e33a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/misc/message.part.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
{% endif %}
{% endif %}

{% if user.is_authenticated and helpful_link and topic.author != user %}
{% if user.is_authenticated and message.is_visible and helpful_link and topic.author != user %}
<li>
<form action="{{ helpful_link }}" method="post">
{% csrf_token %}
Expand Down Expand Up @@ -244,7 +244,7 @@
</li>
{% endif %}

{% if user.is_authenticated and perms.utils.change_comment_potential_spam and potential_spam_link %}
{% if user.is_authenticated and message.is_visible and perms.utils.change_comment_potential_spam and potential_spam_link %}
<li>
<button
class="alert ico-after potential-spam-handle"
Expand Down

0 comments on commit be9e33a

Please sign in to comment.