check for current user on tag pages

This commit is contained in:
danielgrippi 2011-10-03 19:42:05 -07:00
parent 80a494f9ba
commit 1ab2ead10c

View file

@ -5,7 +5,7 @@ module MobileHelper
end
def mobile_reshare_icon(post)
if (post.public? || reshare?(post)) && post.author != current_user.person
if (post.public? || reshare?(post)) && (user_signed_in? && post.author != current_user.person)
root = reshare?(post) ? post.root : post
if root.author != current_user.person.id