Skip to content

Commit

Permalink
Un membre ne peut pas modifier son message s'il est masqué
Browse files Browse the repository at this point in the history
  • Loading branch information
Situphen committed Mar 4, 2021
1 parent 4279c2d commit 408f104
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 @@ -112,7 +112,7 @@
<ul class="dropdown-content" tabindex="0">
{# User actions on their own message #}

{% if message.author == user %}
{% if message.author == user and not message_is_hidden %}
{% if edit_link %}
{% if message.pk in user_can_modify %} {# User cannot edit a MP post if someone answered after. #}
<li>
Expand All @@ -123,7 +123,7 @@
{% endif %}
{% endif %}

{% if not message_is_hidden and can_hide != False %}
{% if can_hide != False %}
<li>
<a href="#hide-message-{{ message.id }}" class="ico-after hide open-modal">
<span>{% trans "Masquer" %}</span>
Expand Down

0 comments on commit 408f104

Please sign in to comment.