From 02f134932ff9fd2be852e3923356a29718ecd712 Mon Sep 17 00:00:00 2001 From: Adhityaa Date: Sun, 3 Jun 2018 20:47:55 +0530 Subject: [PATCH] domain_moderator_delete.go: fix fn param order --- api/domain_moderator_delete.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/domain_moderator_delete.go b/api/domain_moderator_delete.go index 9589513..ae56491 100644 --- a/api/domain_moderator_delete.go +++ b/api/domain_moderator_delete.go @@ -42,7 +42,7 @@ func domainModeratorDeleteHandler(w http.ResponseWriter, r *http.Request) { } domain := stripDomain(*x.Domain) - authorised, err := domainOwnershipVerify(domain, o.Email) + authorised, err := domainOwnershipVerify(o.OwnerHex, domain) if err != nil { writeBody(w, response{"success": false, "message": err.Error()}) return