From 6a294e74893569c32768362c0ebe2836b6d1b8bd Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 20 Mar 2018 16:42:15 -0700 Subject: [PATCH] rpc: extend writePermissions and readPermissions with the invoice entity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the prior commit, we added a new set of permissions and also a new entity: “invoices”. We’ll add this set of entities to the read and write permissions accordingly as well to ensure that the existing macaroons have access to all the items that the invoice.macaroon does. --- rpcserver.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rpcserver.go b/rpcserver.go index afc68789..d79ddf6c 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -69,6 +69,10 @@ var ( Entity: "info", Action: "read", }, + { + Entity: "invoices", + Action: "read", + }, } // writePermissions is a slice of all entities that allow write @@ -98,6 +102,12 @@ var ( Entity: "info", Action: "write", }, + { + Entity: "invoices", + Action: "write", + }, + } + // invoicePermissions is a slice of all the entities that allows a user // to only access calls that are related to invoices, so: streaming // RPC's, generating, and listening invoices.