mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 03:27:25 +08:00

This happened when a middleware accessed the `currentUser` before a controller had a chance to populate the `action_dispatch.request.path_parameters` env variable. In that case Discourse would always cache `nil` as `currentUser`.