From 2a44e83989e41be49d9913940f84d9dfc1b3c245 Mon Sep 17 00:00:00 2001 From: Adhityaa Date: Thu, 7 Jun 2018 12:59:39 +0530 Subject: [PATCH] comment_approve.go: fix isDomainModerator args --- api/comment_approve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/comment_approve.go b/api/comment_approve.go index 51b76d1..28b96d4 100644 --- a/api/comment_approve.go +++ b/api/comment_approve.go @@ -48,7 +48,7 @@ func commentApproveHandler(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