diff --git a/api/comment_delete.go b/api/comment_delete.go index 9b3b386..b12e6e5 100644 --- a/api/comment_delete.go +++ b/api/comment_delete.go @@ -47,7 +47,7 @@ func commentDeleteHandler(w http.ResponseWriter, r *http.Request) { return } - isModerator, err := isDomainModerator(c.Email, domain) + isModerator, err := isDomainModerator(domain, c.Email) if err != nil { writeBody(w, response{"success": false, "message": err.Error()}) return