메일 알림 시스템 추가

This commit is contained in:
Yun Chan 2026-06-29 17:07:01 +09:00
parent ddf12a851c
commit 3bf38c50df
22 changed files with 1769 additions and 31 deletions

View file

@ -185,6 +185,7 @@ class NotificationPreferences(BaseModel):
session_done: bool = True
safety_signal: bool = True
learner_progress: bool = False
account_approval: bool = True
product_news: bool = False
@ -580,7 +581,7 @@ async def complete_onboarding(
principal.display_name = updated.display_name
principal.profile_completed_at = updated.profile_completed_at
if (principal.role == Role.LEARNER or principal.super_admin) and principal.consent_at is None:
if principal.can_access_role(Role.LEARNER) and principal.consent_at is None:
principal.consent_at = await record_user_consent(principal.user_id)
return await _profile_for(principal)