mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-07 23:06:42 +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}"
|
a.communication__interaction.togglable-delete-form-link href="#" data-click-toggle="#inline-del-form-comment-#{@comment.id}"
|
||||||
i.fas.fa-times>
|
i.fas.fa-times>
|
||||||
' Delete
|
' Delete
|
||||||
= if can?(@conn, :manage, @comment) do
|
= if can?(@conn, :show, :ip_address) do
|
||||||
.communication__info
|
.communication__info
|
||||||
=<> link_to_ip(@conn, @comment.ip)
|
=<> link_to_ip(@conn, @comment.ip)
|
||||||
.communication__info
|
.communication__info
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
span.image_uploader
|
span.image_uploader
|
||||||
' by
|
' by
|
||||||
=> render PhilomenaWeb.UserAttributionView, "_anon_user.html", object: @image, awards: true, conn: @conn
|
=> 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_ip(@conn, @image.ip)
|
||||||
=> link_to_fingerprint(@conn, @image.fingerprint)
|
=> link_to_fingerprint(@conn, @image.fingerprint)
|
||||||
a href="#"
|
a href="#"
|
||||||
|
|
|
@ -21,7 +21,7 @@ article.block.communication id="post_#{@post.id}"
|
||||||
a.communication__interaction.togglable-delete-form-link href="#"
|
a.communication__interaction.togglable-delete-form-link href="#"
|
||||||
i.fa.fa-times
|
i.fa.fa-times
|
||||||
=<> "Delete"
|
=<> "Delete"
|
||||||
= if can?(@conn, :manage, @post) do
|
= if can?(@conn, :show, :ip_address) do
|
||||||
.communication__info
|
.communication__info
|
||||||
=<> link_to_ip(@conn, @post.ip)
|
=<> link_to_ip(@conn, @post.ip)
|
||||||
.communication__info
|
.communication__info
|
||||||
|
|
Loading…
Reference in a new issue