use proper permission for ip

This commit is contained in:
Luna D 2019-12-10 15:31:39 -05:00
parent a2b3817d5a
commit b9a4a104c1
No known key found for this signature in database
GPG key ID: D0F46C94720BAA4B
3 changed files with 3 additions and 3 deletions

View file

@ -42,7 +42,7 @@ article.block.communication id="comment_#{@comment.id}"
a.communication__interaction.togglable-delete-form-link href="#" data-click-toggle="#inline-del-form-comment-#{@comment.id}"
i.fas.fa-times>
' Delete
= if can?(@conn, :manage, @comment) do
= if can?(@conn, :show, :ip_address) do
.communication__info
=<> link_to_ip(@conn, @comment.ip)
.communication__info

View file

@ -54,7 +54,7 @@
span.image_uploader
' by
=> render PhilomenaWeb.UserAttributionView, "_anon_user.html", object: @image, awards: true, conn: @conn
= if can?(@conn, :manage, @image) do
= if can?(@conn, :show, :ip_address) do
=> link_to_ip(@conn, @image.ip)
=> link_to_fingerprint(@conn, @image.fingerprint)
a href="#"

View file

@ -21,7 +21,7 @@ article.block.communication id="post_#{@post.id}"
a.communication__interaction.togglable-delete-form-link href="#"
i.fa.fa-times
=<> "Delete"
= if can?(@conn, :manage, @post) do
= if can?(@conn, :show, :ip_address) do
.communication__info
=<> link_to_ip(@conn, @post.ip)
.communication__info