summaryrefslogtreecommitdiff
path: root/app/views/forumthreads/show.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/forumthreads/show.html.erb')
-rw-r--r--app/views/forumthreads/show.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/forumthreads/show.html.erb b/app/views/forumthreads/show.html.erb
index 10cfeb6..206ae09 100644
--- a/app/views/forumthreads/show.html.erb
+++ b/app/views/forumthreads/show.html.erb
@@ -8,7 +8,7 @@
<%= link_to p do %>
<%= ago @thread.created_at %>
<% end %>
- <%= link_to "edit", edit_forumthread_path( @thread), class: "editlink" if (@thread.author.is?(current_user) || mod?) %>
+ <%= link_to "edit", edit_forumthread_path( @thread), class: "editlink" if (mod? && current_user.role >= @thread.author.role) || @thread.author.is?(current_user) %>
<div class="clear-right"></div>
</div>
<div class="items">