Jun 28 - Code optimize - Fix Critical/High issues

This commit is contained in:
2026-06-28 11:30:04 -04:00
parent 26d1b77dec
commit 4937a5b529
4 changed files with 17 additions and 7 deletions
+4
View File
@@ -119,6 +119,10 @@ def branding():
branding_allowed = tenant.allow_branding
settings = TenantSettings.get_or_default()
if settings is None:
flash('Branding settings are not available yet — the phase33 migration has not been applied to this tenant DB. '
'Run: python -m control.tenant_migrate upgrade --tenant <slug>', 'warning')
return redirect(url_for('dashboard.index'))
if request.method == 'POST':
if not branding_allowed: