lnrpc+rpcserver: improve docs for CheckMacaroonPermissions

Fixes #10026.
This commit is contained in:
Oliver Gugger committed 2025-07-21 13:06:25 +02:00
1 parent 5c62e904e2
commit 66340500e9
5 files changed
+59 -16

No files matched your search

+4 -1
View File
@@ -8787,7 +8787,10 @@ func (r *rpcServer) ListPermissions(_ context.Context,
}, nil
}
// CheckMacaroonPermissions checks the caveats and permissions of a macaroon.
// CheckMacaroonPermissions checks whether the provided macaroon contains all
// the provided permissions. If the macaroon is valid (e.g. all caveats are
// satisfied), and all permissions provided in the request are met, then
// this RPC returns true.
func (r *rpcServer) CheckMacaroonPermissions(ctx context.Context,
req *lnrpc.CheckMacPermRequest) (*lnrpc.CheckMacPermResponse, error) {