diff --git a/app/views/comments/_votes.html.erb b/app/views/comments/_votes.html.erb
index d7af65bff..495837af6 100644
--- a/app/views/comments/_votes.html.erb
+++ b/app/views/comments/_votes.html.erb
@@ -3,17 +3,25 @@
|
- <%= link_to vote_comment_path(comment, value: 'yes'),
- method: "post", remote: true do %>
-
+ <% if can?(:vote, comment) %>
+ <%= link_to vote_comment_path(comment, value: 'yes'),
+ method: "post", remote: true do %>
+
+ <% end %>
+ <% else %>
+
<% end %>
<%= comment.total_likes %>
- <%= link_to vote_comment_path(comment, value: 'no'),
- method: "post", remote: true do %>
-
+ <% if can?(:vote, comment) %>
+ <%= link_to vote_comment_path(comment, value: 'no'),
+ method: "post", remote: true do %>
+
+ <% end %>
+ <% else %>
+
<% end %>
<%= comment.total_dislikes %>