allow mods to edit their post even if thread is locked
This commit is contained in:
parent
8cd4695794
commit
d1e29822ac
@ -29,7 +29,7 @@
|
|||||||
</i></a>
|
</i></a>
|
||||||
<span>
|
<span>
|
||||||
<%
|
<%
|
||||||
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
|
if show_edit then
|
||||||
%>
|
%>
|
||||||
<a class="linkbutton" href="<%= url_for("edit_post", {post_id = post.id}) %>">Edit</a>
|
<a class="linkbutton" href="<%= url_for("edit_post", {post_id = post.id}) %>">Edit</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user