[openstreetmap/openstreetmap-website] Use "visible" scope when finding traces (PR #4628)
Anton Khorev
notifications at github.com
Thu Mar 28 05:29:39 UTC 2024
@AntonKhorev commented on this pull request.
>
- if @trace&.visible? &&
- (@trace&.public? || @trace&.user == current_user)
+ if @trace&.public? || @trace&.user == current_user
replaced `&.` with `.` here
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4628#discussion_r1542335970
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4628/review/1965200939 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240327/d88167ed/attachment.htm>
More information about the rails-dev
mailing list