From 42e1d29cd4d627d9f1f6dba181f80cddc3180f06 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sun, 15 Dec 2019 11:33:43 -0500 Subject: [PATCH] read -> show --- lib/philomena_web/templates/comment/_comment_options.html.slime | 2 +- lib/philomena_web/templates/post/_post_options.html.slime | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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