Require authentication for /preview_email/ #16

Closed
opened 2026-07-10 10:48:29 -07:00 by westfarn · 0 comments
Owner

Problem

The /preview_email/<pk>/ endpoint exposes email message content and should not be publicly accessible.

Expected

Unauthenticated requests to /preview_email/<pk>/ must be redirected to login (or otherwise denied). Only authenticated users may view the preview.

Acceptance criteria

  • preview_email view requires an authenticated user
  • Unit test covers unauthenticated access (redirect/deny) and authenticated access (200)
  • PR linked to this issue
## Problem The `/preview_email/<pk>/` endpoint exposes email message content and should not be publicly accessible. ## Expected Unauthenticated requests to `/preview_email/<pk>/` must be redirected to login (or otherwise denied). Only authenticated users may view the preview. ## Acceptance criteria - [ ] `preview_email` view requires an authenticated user - [ ] Unit test covers unauthenticated access (redirect/deny) and authenticated access (200) - [ ] PR linked to this issue
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ai_ml_operations/company_site#16