[openstreetmap/openstreetmap-website] Remove current_user branch from ApiController#deny_access (PR #5673)
Anton Khorev
notifications at github.com
Fri Feb 14 22:24:55 UTC 2025
Unreachable because if there's no `doorkeeper_token`, there's also no `current_user`.
This is the only place in the api where `current_user` is set:
https://github.com/openstreetmap/openstreetmap-website/blob/f5af8befa9ffe0c95f4a3c58d2fbb63a2e971ab0/app/controllers/api_controller.rb#L105
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/5673
-- Commit Summary --
* Remove current_user branch from ApiController#deny_access
-- File Changes --
M app/controllers/api_controller.rb (2)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/5673.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5673.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5673
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5673 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250214/ae6d4618/attachment.htm>
More information about the rails-dev
mailing list