diff --git a/app/models/user.py b/app/models/user.py index 5148117..37baf04 100644 --- a/app/models/user.py +++ b/app/models/user.py @@ -261,7 +261,7 @@ class Member(User): if comment.type != "comment": return False post = comment.thread.owner_post - return self.can_edit_post(post) and (comment.author == post.author) + return self.can_edit_post(post) def can_lock_thread(self, post): """Whether this member can lock the thread associated with the post""" diff --git a/app/templates/forum/topic.html b/app/templates/forum/topic.html index 64a472d..86db5ea 100644 --- a/app/templates/forum/topic.html +++ b/app/templates/forum/topic.html @@ -24,6 +24,9 @@
Créé le {{ t.date_created | dyndate }} + {% if t.author_id != t.thread.top_comment.author.id %} + par {{ t.author.name }} + {% endif %} {% if t.thread.top_comment.date_created | dyndate != t.date_created | dyndate %} (Posté le {{ t.thread.top_comment.date_created | dyndate }})