diff --git a/app/views/comments/_actions.html.erb b/app/views/comments/_actions.html.erb index 2852fa09d..80302a70a 100644 --- a/app/views/comments/_actions.html.erb +++ b/app/views/comments/_actions.html.erb @@ -1,8 +1,6 @@ -<% if local_assigns.fetch(:allow_flagging, true) %> - - <%= render 'comments/flag_actions', comment: comment %> - -<% end %> + + <%= render 'comments/flag_actions', comment: comment %> + <% if can? :hide, comment %> diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb index df065a3f9..e60570b8b 100644 --- a/app/views/comments/_comment.html.erb +++ b/app/views/comments/_comment.html.erb @@ -1,7 +1,7 @@ <% comment_flags ||= @comment_flags %> <% valuation = local_assigns.fetch(:valuation, false) %> <% allow_votes = local_assigns.fetch(:allow_votes, true) %> -<% allow_flagging = local_assigns.fetch(:allow_flagging, true) %> +<% allow_actions = local_assigns.fetch(:allow_actions, true) %> <% allow_comments = local_assigns.fetch(:allow_comments, true) %> <% cache [locale_and_user_status(comment), comment, commentable_cache_key(comment.commentable), comment.author, (comment_flags[comment.id] if comment_flags)] do %>