towerops/lib/towerops_web
Graham McIntire dc32e16c68
fix: allow cloud pollers to access devices from any organization
Cloud pollers (is_cloud_poller = true, organization_id = nil) were
being blocked from polling devices because verify_device_organization
was checking if the device's organization matched the agent's
organization.

Since cloud pollers don't belong to any organization (organization_id
is nil), they should be allowed to poll devices from any organization.

Changes:
- verify_device_organization now allows access if organization_id is nil
- This fixes "Device not in agent's organization" errors for cloud pollers

Error before:
  Device b7e8dd99-0b19-496d-97ae-9f2601d16464 not in agent's organization
2026-01-25 11:15:19 -06:00
..
channels fix: allow cloud pollers to access devices from any organization 2026-01-25 11:15:19 -06:00
components sanitize snmp data and fix some cpu things 2026-01-22 16:53:01 -06:00
controllers debug: add detailed logging to health check endpoint 2026-01-24 17:39:56 -06:00
helpers test improvements 2026-01-18 17:15:44 -06:00
live fix: handle :global agent source in device form template 2026-01-25 11:04:29 -06:00
plugs feat: update UI to Tailwind Plus design system and fix auth redirects 2026-01-18 09:56:49 -06:00
endpoint.ex agent improvements and agent config 2026-01-16 17:26:51 -06:00
gettext.ex init 2025-12-21 11:10:43 -06:00
router.ex add honeybadger and snmp overhaul 2026-01-18 16:16:08 -06:00
telemetry.ex fix: add Oban config to dev.exs and replace Exq telemetry with Oban 2026-01-24 16:39:45 -06:00
user_auth.ex feat: add 5 new vendor modules and fix dialyzer issues 2026-01-22 09:34:50 -06:00