From d1e29822ac61b493c42d4f326cd656295cde9e4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Tue, 27 May 2025 17:28:39 +0300 Subject: [PATCH] allow mods to edit their post even if thread is locked --- views/threads/post.etlua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/threads/post.etlua b/views/threads/post.etlua index 86ae4dc..4288fc9 100644 --- a/views/threads/post.etlua +++ b/views/threads/post.etlua @@ -29,7 +29,7 @@ <% - local show_edit = me.id == post.user_id and not me:is_guest() and not ntob(thread.is_locked) and not no_reply + local show_edit = me.id == post.user_id and not me:is_guest() and (not ntob(thread.is_locked) or me:is_mod()) and not no_reply if show_edit then %> ">Edit