From d85c136f1d7097f034ac657aa20bdba601d700f7 Mon Sep 17 00:00:00 2001 From: Adhityaa Date: Thu, 7 Jun 2018 13:05:52 +0530 Subject: [PATCH] comment_delete.go: fix isDomainModerator args --- api/comment_delete.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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