[openstreetmap/openstreetmap-website] Adds storing note's properties to notes (PR #5650)
Nenad Vujicic
notifications at github.com
Wed Feb 12 10:12:42 UTC 2025
@nenad-vujicic commented on this pull request.
> @@ -379,17 +382,30 @@ def bbox_condition(notes)
end
end
+ ##
+ # Get author's information (for logged in users - user_id, for logged out users - IP address)
+ def author_info
+ author = current_user if scope_enabled?(:write_notes)
Fixed (and pushed)! Thanks!
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5650#discussion_r1952355899
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5650/review/2611432425 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250212/b42b2ab0/attachment-0001.htm>
More information about the rails-dev
mailing list