domain_moderator_delete.go: fix fn param order

This commit is contained in:
Adhityaa 2018-06-03 20:47:55 +05:30
parent 08783df363
commit 02f134932f

View File

@ -42,7 +42,7 @@ func domainModeratorDeleteHandler(w http.ResponseWriter, r *http.Request) {
} }
domain := stripDomain(*x.Domain) domain := stripDomain(*x.Domain)
authorised, err := domainOwnershipVerify(domain, o.Email) authorised, err := domainOwnershipVerify(o.OwnerHex, domain)
if err != nil { if err != nil {
writeBody(w, response{"success": false, "message": err.Error()}) writeBody(w, response{"success": false, "message": err.Error()})
return return