diff --git a/backend/app/config.py b/backend/app/config.py index b4ddd50..abe45fc 100644 --- a/backend/app/config.py +++ b/backend/app/config.py @@ -136,7 +136,7 @@ class Settings(BaseSettings): CONFIG_RETENTION_DAYS: int = 90 # Licensing — BSL 1.1 free tier allows up to 250 devices. - # Commercial license required above this limit. Set to 0 for unlimited. + # Commercial license required above this limit. LICENSE_DEVICES: int = 250 # App settings diff --git a/backend/app/routers/settings.py b/backend/app/routers/settings.py index 9bab5a0..a8d61d5 100644 --- a/backend/app/routers/settings.py +++ b/backend/app/routers/settings.py @@ -194,6 +194,6 @@ async def get_license_status(): return { "licensed_devices": limit, "actual_devices": device_count, - "over_limit": limit > 0 and device_count > limit, + "over_limit": device_count > limit, "tier": "commercial" if limit > 250 else "free", } diff --git a/frontend/src/routes/_authenticated/about.tsx b/frontend/src/routes/_authenticated/about.tsx index 784f4e0..44e34ff 100644 --- a/frontend/src/routes/_authenticated/about.tsx +++ b/frontend/src/routes/_authenticated/about.tsx @@ -530,7 +530,7 @@ function AboutPage() { {license.tier === 'commercial' ? 'Commercial License' : 'BSL 1.1 — Free Tier'} - {license.actual_devices} / {license.licensed_devices === 0 ? 'Unlimited' : license.licensed_devices} devices + {license.actual_devices} / {license.licensed_devices} devices {license.over_limit && (