Jun 28 - Code optimize - Fix Critical/High issues
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user