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