snapshot: preserve session hardening and account surface
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user