summaryrefslogtreecommitdiff
path: root/app/views/forumthreads/show.html.erb
diff options
context:
space:
mode:
authorjomo <github@jomo.tv>2016-07-24 22:30:00 +0200
committerjomo <github@jomo.tv>2016-07-24 22:30:00 +0200
commitb057cb591344828ceead2d8b156832d332a9991d (patch)
treeaae2670132c50ccc45fa44fafebee386389d765d /app/views/forumthreads/show.html.erb
parentc9e7015f4c675aa3f1320ab70836edd05d7a1208 (diff)
remove annoying permission check for comments, forums, threads, replies
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 206ae09..876d55d 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 (mod? && current_user.role >= @thread.author.role) || @thread.author.is?(current_user) %>
+ <%= link_to "edit", edit_forumthread_path( @thread), class: "editlink" if mod? || @thread.author.is?(current_user) %>
<div class="clear-right"></div>
</div>
<div class="items">