comment_approve.go: fix isDomainModerator args

This commit is contained in:
Adhityaa 2018-06-07 12:59:39 +05:30
parent 85a6d1ec95
commit 2a44e83989

View File

@ -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