Skip to content

Add Current.organization logic to REST API

In !158626 (merged), we determine the Current.organization using ApplicationController.

This won't work with REST API because the API is not using ApplicationController

So:

  • Add a before hook to lib/api/api.rb
  • Fix tests. I expect tests that have limits on query counts to fail