rpcperms: set CustomCaveatCondition on middleware req

This sets the `CustomCaveatCondition` value on rpc middleware requests
if one exists. Previously, this value was always blank even if the
macaroon had a value set for its custom caveat condition.
This commit is contained in:
Daniel McNally committed 2022-01-24 11:39:07 -05:00
1 parent a4474447c2
commit 4a573b18cf
3 files changed
+40 -6

No files matched your search

@@ -92,6 +92,10 @@ Postgres](https://github.com/lightningnetwork/lnd/pull/6111)
exposed](https://github.com/lightningnetwork/lnd/pull/6146) inside
WaitingCloseResp from calling `PendingChannels`.
* [CustomCaveatCondition is now properly
set](https://github.com/lightningnetwork/lnd/pull/6185) on
`RPCMiddlewareRequest` messages.
## Routing
@@ -104,6 +108,7 @@ Postgres](https://github.com/lightningnetwork/lnd/pull/6111)
* Andras Banki-Horvath
* Bjarne Magnussen
* Daniel McNally
* Elle Mouton
* Harsha Goli
* Joost Jager