mirror of
https://github.com/discourse/discourse.git
synced 2025-04-14 07:30:54 +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`.