diff options
author | jomo <github@jomo.tv> | 2016-07-19 15:06:40 +0200 |
---|---|---|
committer | jomo <github@jomo.tv> | 2016-07-19 15:06:40 +0200 |
commit | 76076bbdf2c80279bcc9a34e31c960e9d58d7ed4 (patch) | |
tree | 0d7f56ae010342e1b12e54b30fa587fe4710bd27 /app/views/comments/_comment.html.erb | |
parent | f2353eebcc22212f3fe5e817f1fdee4edb810805 (diff) |
fix edit link permission checks for comments, threads, replies
Diffstat (limited to 'app/views/comments/_comment.html.erb')
-rw-r--r-- | app/views/comments/_comment.html.erb | 2 |
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"> |