[openstreetmap/openstreetmap-website] Add geoblock zones where anynomous notes are not allowed (PR #6713)
Pablo Brasero
notifications at github.com
Wed Jan 21 16:46:04 UTC 2026
@pablobm commented on this pull request.
> @@ -89,6 +89,8 @@ def create
lat = OSM.parse_float(params[:lat], OSM::APIBadUserInput, "lat was not a number")
description = params[:text]
+ raise OSM::APIAccessDenied if current_user.nil? && GeoblockZone.falls_within_any?(:lon => lon, :lat => lat)
Done now.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6713#discussion_r2713435663
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6713/review/3688286597 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260121/dcd5c1a7/attachment.htm>
More information about the rails-dev
mailing list