diff --git a/lib/philomena_web/templates/comment/_comment_options.html.slime b/lib/philomena_web/templates/comment/_comment_options.html.slime index d6e17f3f..f46a6c19 100644 --- a/lib/philomena_web/templates/comment/_comment_options.html.slime +++ b/lib/philomena_web/templates/comment/_comment_options.html.slime @@ -6,7 +6,7 @@ div i.fa.fa-flag> ' Report - = if not is_nil(@comment.edited_at) and can?(@conn, :read, @comment) do + = if not is_nil(@comment.edited_at) and can?(@conn, :show, @comment) do br a href=Routes.image_comment_history_path(@conn, :index, @comment.image, @comment) ' Edited diff --git a/lib/philomena_web/templates/post/_post_options.html.slime b/lib/philomena_web/templates/post/_post_options.html.slime index 08ea46b7..9c7c0498 100644 --- a/lib/philomena_web/templates/post/_post_options.html.slime +++ b/lib/philomena_web/templates/post/_post_options.html.slime @@ -6,7 +6,7 @@ div i.fa.fa-flag> ' Report - = if not is_nil(@post.edited_at) and can?(@conn, :read, @post) do + = if not is_nil(@post.edited_at) and can?(@conn, :show, @post) do br a href=Routes.forum_topic_post_history_path(@conn, :index, @post.topic.forum, @post.topic, @post) ' Edited