Skip to content

Commit

Permalink
backport of commit b092818
Browse files Browse the repository at this point in the history
  • Loading branch information
lgfa29 committed Jul 6, 2022
1 parent d828ea2 commit d0948e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion acl/acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ func (a *ACL) anyNamespaceAllows(cb func(capabilitySet) bool) bool {

checkFn := func(_ []byte, iv interface{}) bool {
v := iv.(capabilitySet)
return cb(v)
allow = cb(v)
return allow
}

a.namespaces.Root().Walk(checkFn)
Expand Down

0 comments on commit d0948e2

Please sign in to comment.