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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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_emailview requires an authenticated user