snapshot: preserve session hardening and account surface

This commit is contained in:
Md Bayazid Bostame
2026-03-27 01:11:29 +01:00
parent bbc9b7b646
commit 8d228723f9
29 changed files with 825 additions and 42 deletions

View File

@@ -12,6 +12,10 @@ from .branding import get_portal_trial_config, is_trial_expired
from .models import AdminAuditLog, EmployeeProfile, OffboardingRequest, OnboardingIntroductionSession, OnboardingRequest, ScheduledWelcomeEmail
from .roles import ROLE_PLATFORM_OWNER, get_user_role_key
# Trial cleanup is intentionally destructive but platform-scoped.
# It preserves the platform-owner account so expired demo environments remain
# recoverable and inspectable by the product operator.
def cleanup_trial_workspace_data() -> dict[str, int]:
user_model = get_user_model()