From 7a6e03c19b60fa337cd2760949b58b0768fdacf4 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Wed, 26 Jan 2022 17:21:45 -0500 Subject: [PATCH] acl: Remove a call to aclAccessorID I missed this on the first pass, we no longer need to look up this ID, because we have it from the Authorizer. --- agent/acl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/acl.go b/agent/acl.go index 7b92210ed8..0c0334a2f0 100644 --- a/agent/acl.go +++ b/agent/acl.go @@ -171,7 +171,7 @@ func (a *Agent) filterMembers(token string, members *[]serf.Member) error { if authz.NodeRead(node, &authzContext) == acl.Allow { continue } - accessorID := a.aclAccessorID(token) + accessorID := authz.AccessorID() a.logger.Debug("dropping node from result due to ACLs", "node", node, "accessorID", accessorID) m = append(m[:i], m[i+1:]...) i--