mirror of https://github.com/status-im/consul.git
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
e134e43da6
commit
7a6e03c19b
|
@ -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--
|
||||
|
|
Loading…
Reference in New Issue