macaroons: rename PermissionsConstraint to AllowConstraint
This commit is contained in:
1 parent
7df503575c
commit
1379488e72
3 files changed
+6
-6
No files matched your search
+1
-1
@@ -97,7 +97,7 @@ func ValidateMacaroon(ctx context.Context, method string,
|
||||
//
|
||||
// TODO(aakselrod): Add more checks as required.
|
||||
return svc.Check(macaroon.Slice{mac}, checkers.New(
|
||||
PermissionsChecker(method),
|
||||
AllowChecker(method),
|
||||
TimeoutChecker(),
|
||||
IPLockChecker(peerAddr),
|
||||
))
|
||||
|
||||
Reference in new issue
Block a user