Document review fixes and harden mail actions

This commit is contained in:
DonVoo 2026-07-14 05:22:26 +02:00
parent 4f8a441d51
commit 21aa6e39e1
5 changed files with 101 additions and 3 deletions

View file

@ -65,6 +65,9 @@ func RegisterRoutes(mux *http.ServeMux) {
}
func mailSendHandler(w http.ResponseWriter, r *http.Request) {
if !requireManager(w, r) {
return
}
if r.Method != http.MethodPost {
http.Error(w, "method not allowed", http.StatusMethodNotAllowed)
return