Skip to content

Commit

Permalink
Merge "[FABC-492] Superfluous checks for deleting identity"
Browse files Browse the repository at this point in the history
  • Loading branch information
mastersingh24 authored and Gerrit Code Review committed Oct 20, 2018
2 parents 3c1585b + 0de6679 commit 787b98e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/serveridentities.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 787b98e

Please sign in to comment.