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:
parent
c1da07e2ea
commit
6fe2311ce0
|
@ -171,7 +171,7 @@ func (a *Agent) filterMembers(token string, members *[]serf.Member) error {
|
||||||
if authz.NodeRead(node, &authzContext) == acl.Allow {
|
if authz.NodeRead(node, &authzContext) == acl.Allow {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
accessorID := a.aclAccessorID(token)
|
accessorID := authz.AccessorID()
|
||||||
a.logger.Debug("dropping node from result due to ACLs", "node", node, "accessorID", accessorID)
|
a.logger.Debug("dropping node from result due to ACLs", "node", node, "accessorID", accessorID)
|
||||||
m = append(m[:i], m[i+1:]...)
|
m = append(m[:i], m[i+1:]...)
|
||||||
i--
|
i--
|
||||||
|
|
Loading…
Reference in New Issue