05/22 Implement license version

This commit is contained in:
2026-05-22 16:31:19 -04:00
parent e6657e60cf
commit 687216e332
16 changed files with 1373 additions and 37 deletions
+17
View File
@@ -1572,3 +1572,20 @@ def email_ingestion_run_now():
except Exception as exc:
logger.error(f'[ADMIN EMAIL INGEST] Manual run error: {exc}', exc_info=True)
return jsonify(ok=False, message=f'Run failed: {exc}')
@admin_bp.route('/license')
@login_required
@admin_required
def license_page():
from app.services.license_service import get_status, days_until_expiry, TIER_FEATURES
status = get_status()
days_left = days_until_expiry()
tier = status.get('tier', 'community')
features = TIER_FEATURES.get(tier, set())
return render_template(
'admin/license.html',
status = status,
days_left = days_left,
features = features,
)