From 4279c2d3a9d0637b4ea729006d68425c5c69f3b8 Mon Sep 17 00:00:00 2001 From: Situphen Date: Tue, 2 Mar 2021 20:44:16 +0100 Subject: [PATCH] =?UTF-8?q?On=20cache=20le=20bouton=20Modifier=20dans=20le?= =?UTF-8?q?s=20MPs=20si=20quelqu'un=20a=20r=C3=A9pondu=20apr=C3=A8s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/misc/message.part.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/templates/misc/message.part.html b/templates/misc/message.part.html index c196465117..6c1e47df76 100644 --- a/templates/misc/message.part.html +++ b/templates/misc/message.part.html @@ -114,11 +114,13 @@ {% if message.author == user %} {% if edit_link %} -
  • - - {% trans "Modifier" %} - -
  • + {% if message.pk in user_can_modify %} {# User cannot edit a MP post if someone answered after. #} +
  • + + {% trans "Modifier" %} + +
  • + {% endif %} {% endif %} {% if not message_is_hidden and can_hide != False %}