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.
This commit is contained in:
Daniel Nephin 2022-01-26 17:21:45 -05:00
parent c1da07e2ea
commit 6fe2311ce0
1 changed files with 1 additions and 1 deletions

View File

@ -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--