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/5...@github.com>
_______________________________________________ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev