[openstreetmap/openstreetmap-website] Lazy loading relation members (PR #6326)
mmd
notifications at github.com
Sun Aug 17 18:50:27 UTC 2025
@mmd-osm commented on this pull request.
> @@ -0,0 +1,13 @@
+<turbo-frame id="<%= frame_id %>">
+ <% if relation.redacted? && !params[:show_redactions] %>
The error message was intended for someone trying to directly access the new endpoint. It cannot happen in our UI, because, as you said, the relation version won't show any details except for this message: _Version x of this relation cannot be shown as it has been redacted. Please see Redaction y for details._
So in the OldRelationMembersController, I would have to add something like:
```
deny_access(nil) if relation.redacted? && !params[:show_redactions]
```
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6326#discussion_r2280982852
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6326/review/3126432559 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250817/9bbb5b28/attachment.htm>
More information about the rails-dev
mailing list