towerops/lib/towerops_web/controllers
Graham McIntire fb8ffde119
fix: prevent site assignment when sites are disabled for org
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.
2026-02-08 13:24:48 -06:00
..
api fix: prevent site assignment when sites are disabled for org 2026-02-08 13:24:48 -06:00
api_docs_html help update 2026-02-04 17:56:48 -06:00
error_html add error pages 2026-01-06 14:37:48 -06:00
page_html enhance user auditing 2026-01-30 17:38:07 -06:00
user_registration_html mikrotik api update 2026-02-02 10:35:44 -06:00
user_reset_password_html purge more passkey and gettext updates 2026-02-02 10:20:59 -06:00
user_session_html add snmp port 2026-02-03 12:51:50 -06:00
user_settings_html paginate discovered devices 2026-01-31 10:31:37 -06:00
user_sudo_html fix: address UserSudoController critical issues 2026-02-01 14:45:05 -06:00
admin_controller.ex Add superuser system with user impersonation for admin support 2026-01-06 12:50:10 -06:00
api_docs_controller.ex updates 2026-01-17 17:49:53 -06:00
api_docs_html.ex updates 2026-01-17 17:49:53 -06:00
debug_controller.ex add headers debug in prod 2026-02-01 10:54:13 -06:00
error_html.ex add error pages 2026-01-06 14:37:48 -06:00
error_json.ex init 2025-12-21 11:10:43 -06:00
health_controller.ex security fixes 2026-01-28 17:02:36 -06:00
page_controller.ex cookie improvements 2026-01-28 12:30:28 -06:00
page_html.ex init 2025-12-21 11:10:43 -06:00
user_registration_controller.ex impersonate fixes 2026-01-28 14:41:27 -06:00
user_registration_html.ex credo cleanup 2026-01-17 15:00:52 -06:00
user_reset_password_controller.ex forgot password flow 2026-01-31 17:03:22 -06:00
user_reset_password_html.ex forgot password flow 2026-01-31 17:03:22 -06:00
user_session_controller.ex add snmp port 2026-02-03 12:51:50 -06:00
user_session_html.ex credo cleanup 2026-01-17 15:00:52 -06:00
user_settings_controller.ex Convert User Settings from controller to LiveView 2026-01-15 16:29:50 -06:00
user_settings_html.ex credo cleanup 2026-01-17 15:00:52 -06:00
user_sudo_controller.ex sudo redirect fix 2026-02-02 10:54:32 -06:00
user_sudo_html.ex feat: implement sudo mode MFA-only verification controller 2026-02-01 14:34:17 -06:00