Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferai committed Aug 27, 2018
1 parent 06b2aeb commit 4377a6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vault/acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,11 @@ func (a *ACL) Capabilities(path string) (pathCapabilities []string) {
capabilities = perm.CapabilitiesBitmap
goto CHECK
}
if op == logical.ListOperation {
if strings.HasSuffix(path, "/") {
raw, ok = a.exactRules.Get(strings.TrimSuffix(path, "/"))
if ok {
permissions = raw.(*ACLPermissions)
capabilities = permissions.CapabilitiesBitmap
perm := raw.(*ACLPermissions)
capabilities = perm.CapabilitiesBitmap
goto CHECK
}
}
Expand Down

0 comments on commit 4377a6e

Please sign in to comment.