mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-31 19:36:44 +01:00
use proper permission for ip
This commit is contained in:
parent
a2b3817d5a
commit
b9a4a104c1
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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="#"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue