feat: add super admin user assignment, scoping, and clean email notifications

This commit is contained in:
Atharv1705
2026-10-30 16:07:46 +05:30
parent 1cca347752
commit b7c935df5a
13 changed files with 680 additions and 105 deletions
+3 -3
View File
@@ -63,11 +63,11 @@ def _run_deadline_reminders():
<p>This is a reminder that your <strong>{doc_label} document filing deadline</strong>
is in <strong>{label}</strong> ({dl.deadline_date.strftime('%B %d, %Y')}).</p>
<p>Please ensure all outstanding actions are completed before the deadline.</p>
<p>Kind regards,<br><strong>BookKeepro Team</strong></p>
<p>Kind regards,<br><strong>Support Team</strong></p>
"""
await send_email(
to=user.email,
subject=f"Reminder: {doc_label} Filing Deadline in {label} — BookKeepro",
subject=f"Reminder: {doc_label} Filing Deadline in {label}",
body=user_body,
)
@@ -78,7 +78,7 @@ def _run_deadline_reminders():
<strong>{user.name or user.email}</strong> ({user.email}) is in
<strong>{label}</strong> ({dl.deadline_date.strftime('%B %d, %Y')}).</p>
<p>Please review the client's status and take any necessary action.</p>
<p><strong>BookKeepro System</strong></p>
<p><strong>Admin System</strong></p>
"""
for admin_email in admin_emails:
await send_email(