From 0de6679cce3d41efbbed907762cf78e2038f43d4 Mon Sep 17 00:00:00 2001 From: Saad Karim Date: Mon, 8 Oct 2018 14:00:41 -0400 Subject: [PATCH] [FABC-492] Superfluous checks for deleting identity Redunant authority checks were being made by fabric-ca server for a identity delete request. Removed the secondary round of authority checks. Change-Id: Ia4d1b1433b6b9c7214a6acdd31b035a3a37c10a0 Signed-off-by: Saad Karim --- lib/serveridentities.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/serveridentities.go b/lib/serveridentities.go index 76d265fba..cfb63b088 100644 --- a/lib/serveridentities.go +++ b/lib/serveridentities.go @@ -293,11 +293,6 @@ func processDeleteRequest(ctx *serverRequestContextImpl, caname string) (*api.Id return nil, err } - err = ctx.CanManageUser(userToRemove) - if err != nil { - return nil, err - } - _, err = registry.DeleteUser(removeID) if err != nil { return nil, caerrors.NewHTTPErr(500, caerrors.ErrRemoveIdentity, "Failed to remove identity: %s", err)