Skip to content

Commit 1f95adc

Browse files
committed
improves polling
1 parent 4f56017 commit 1f95adc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

radioshaq/radioshaq/api/routes/transcripts.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ async def search_transcripts(
5656
out = list(results)
5757
config = get_config(request)
5858
allowed = await get_effective_allowed_callsigns(db, config.radio)
59+
# When whitelist is applied, include the authenticated user's callsign so they can see their own transcripts
5960
if allowed:
61+
user_callsign = (getattr(user, "station_id", None) or getattr(user, "sub", None) or "").strip().upper()
62+
if user_callsign:
63+
allowed = set(allowed) | {user_callsign}
6064
out = [
6165
t
6266
for t in out

0 commit comments

Comments
 (0)