When an organization has sites disabled (use_sites=false), the API now automatically removes any site_id from device creation requests, ensuring devices are assigned directly to the organization instead. This prevents Terraform (and other API clients) from creating devices in sites when sites functionality is disabled for the organization. Fixes issue where Terraform could bypass site restrictions via API. |
||
|---|---|---|
| .. | ||
| channels | ||
| components | ||
| controllers | ||
| helpers | ||
| live | ||
| plugs | ||
| endpoint.ex | ||
| gettext.ex | ||
| gettext_helpers.ex | ||
| permissions.ex | ||
| plug_exceptions.ex | ||
| router.ex | ||
| telemetry.ex | ||
| user_auth.ex | ||