# What this PR does this PR refactors the `sync_organization` and `GrafanaAPIClient.is_rbac_enabled_for_organization` methods to check the connected response bool rather than explicit check on HTTP 200. This handles the legitimate case where the Grafana instance may return an HTTP 302 (redirect) rather than an HTTP 200. ## Which issue(s) this PR fixes See [this](https://grafana.slack.com/archives/C02LSUUSE2G/p1677136582890269) Slack thread in the community channel for more context ## Checklist - [x] Tests updated - [ ] Documentation added (N/A) - [x] `CHANGELOG.md` updated |
||
|---|---|---|
| .. | ||
| migrations | ||
| models | ||
| subscription_strategy | ||
| tests | ||
| __init__.py | ||
| admin.py | ||
| apps.py | ||
| exceptions.py | ||
| middlewares.py | ||
| sync.py | ||
| user_representative.py | ||