Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tenant: revisit filtering logic in TenantFilter
The previous behavior was to either require tenant information in the request and validate it or bypass the filter completly. This wasn't enough for plugins which can choose to expose tenant specific (e.g. Analytics export data API) or agnostic (e.g. Stripe tokenize credit card page) endpoints. This new patch will always honor tenant headers if specified and only fail the request when these are mandatory. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
- Loading branch information
Showing
1 changed file
with
18 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters