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
2022-01-21 09:40:46 -05:00
parent a4474447c2
commit 4a573b18cf
3 changed files with 40 additions and 6 deletions

View File

@ -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