summaryrefslogtreecommitdiff
path: root/app/views/comments/_comment.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/comments/_comment.html.erb')
-rw-r--r--app/views/comments/_comment.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb
index 286cf1b..147e85b 100644
--- a/app/views/comments/_comment.html.erb
+++ b/app/views/comments/_comment.html.erb
@@ -6,7 +6,7 @@
<%= ago c.created_at %>
<% end %>
- <%= link_to "edit", edit_blogpost_comment_path(c.blogpost, c), class: "editlink" if (mod? || c.author.is?(current_user)) %>
+ <%= link_to "edit", edit_blogpost_comment_path(c.blogpost, c), class: "editlink" if (mod? && current_user.role >= c.author.role) || c.author.is?(current_user) %>
<div class="clear-right"></div>
</div>
<div class="items">