Confirms /preview_email/<pk>/ requires an authenticated user (@login_required already on the view)
Adds unit tests for unauthenticated redirect and authenticated preview access
Test plan
python manage.py test public.tests.PreviewEmailAuthTests
Manually hit /preview_email/1/ logged out → redirect to /accounts/login/
Log in and hit same URL → email preview renders
## Summary
- Closes #16
- Confirms `/preview_email/<pk>/` requires an authenticated user (`@login_required` already on the view)
- Adds unit tests for unauthenticated redirect and authenticated preview access
## Test plan
- [x] `python manage.py test public.tests.PreviewEmailAuthTests`
- [ ] Manually hit `/preview_email/1/` logged out → redirect to `/accounts/login/`
- [ ] Log in and hit same URL → email preview renders
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.
Summary
/preview_email/<pk>/requires an authenticated user (@login_requiredalready on the view)Test plan
python manage.py test public.tests.PreviewEmailAuthTests/preview_email/1/logged out → redirect to/accounts/login/