summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2025-11-16 07:45:08 -0500
committerBen Sima <ben@bsima.me>2025-11-16 07:45:08 -0500
commit8235889345a37da308a19bed304cceb62d4dda53 (patch)
treecc324c44d54526a7adbb48f04e91ece46b82822c
parent468ee3c4dc005a139ea2b8ac157c61d0ee4422d9 (diff)
Add admin@example.com to admin whitelist
- Added admin@example.com to ADMIN_EMAILS in Core.py and UI.py - This provides a demo admin account for testing - Public/Private toggle badge already checks for admin status correctly - All tests passing
-rw-r--r--Biz/PodcastItLater/Core.py2
-rw-r--r--Biz/PodcastItLater/UI.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Biz/PodcastItLater/Core.py b/Biz/PodcastItLater/Core.py
index 40b50ea..5e476c1 100644
--- a/Biz/PodcastItLater/Core.py
+++ b/Biz/PodcastItLater/Core.py
@@ -41,7 +41,7 @@ TITLE_TRUNCATE_LENGTH = 50
ERROR_TRUNCATE_LENGTH = 50
# Admin whitelist
-ADMIN_EMAILS = ["ben@bensima.com", "demo@example.com"]
+ADMIN_EMAILS = ["ben@bensima.com", "demo@example.com", "admin@example.com"]
def is_admin(user: dict[str, typing.Any] | None) -> bool:
diff --git a/Biz/PodcastItLater/UI.py b/Biz/PodcastItLater/UI.py
index 009fdbe..72a0bf1 100644
--- a/Biz/PodcastItLater/UI.py
+++ b/Biz/PodcastItLater/UI.py
@@ -131,7 +131,7 @@ def is_admin(user: dict[str, typing.Any] | None) -> bool:
"""Check if user is an admin based on email whitelist."""
if not user:
return False
- admin_emails = ["ben@bensima.com", "demo@example.com"]
+ admin_emails = ["ben@bensima.com", "demo@example.com", "admin@example.com"]
return user.get("email", "").lower() in [
email.lower() for email in admin_emails
]