Document review fixes and harden mail actions
This commit is contained in:
parent
4f8a441d51
commit
21aa6e39e1
5 changed files with 101 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue