Added screenshot_uploaded_by_current_user? helper function

This commit is contained in:
Christoph Haas 2020-08-21 19:10:41 +02:00
parent e5f324e726
commit 13d3517935

View file

@ -19,6 +19,10 @@ module PackagesHelper
end
end
def screenshot_uploaded_by_current_user?(screenshot)
screenshot.uploaderhash == session.id.to_s
end
# Show filled/empty star icons from FontAwesome
# depending on the rating (1-5)
# def star_rating(rating)