Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Toogle for public preview of email #6679
Please be sure you are submitting this against the staging branch.
This PR added option to enable/disable public view of email preview.
Also this update allow developers use this toggle button anywhere for any boolean type:
Steps to test this PR:
Woeler left a comment •
I have tested this and it works. However, I would suggest one small change. Currently it throws a 403 forbidden if you access the non-public email unauthenticated. However, a 403 in general should be thrown when a user is authenticated, but not allowed to view or perform any action on the given resource. This is not the case. A 401 Unauthorized would make more sense here.
Other than that, works perfectly.