comment_delete.go: fix isDomainModerator args
This commit is contained in:
parent
2a44e83989
commit
d85c136f1d
@ -47,7 +47,7 @@ func commentDeleteHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
isModerator, err := isDomainModerator(c.Email, domain)
|
isModerator, err := isDomainModerator(domain, c.Email)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
writeBody(w, response{"success": false, "message": err.Error()})
|
writeBody(w, response{"success": false, "message": err.Error()})
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user