mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
looprpc: fix permissions of two RPCs
Both SweepHtlc and StaticAddressLoopIn are active, so the "swap" entity must have action=execute, not read.
This commit is contained in:
parent
6ea1c79834
commit
e340797225
1 changed files with 2 additions and 2 deletions
|
|
@ -57,7 +57,7 @@ var RequiredPermissions = map[string][]bakery.Op{
|
|||
}},
|
||||
"/looprpc.SwapClient/SweepHtlc": {{
|
||||
Entity: "swap",
|
||||
Action: "read",
|
||||
Action: "execute",
|
||||
}, {
|
||||
Entity: "loop",
|
||||
Action: "out",
|
||||
|
|
@ -131,7 +131,7 @@ var RequiredPermissions = map[string][]bakery.Op{
|
|||
}},
|
||||
"/looprpc.SwapClient/StaticAddressLoopIn": {{
|
||||
Entity: "swap",
|
||||
Action: "read",
|
||||
Action: "execute",
|
||||
}, {
|
||||
Entity: "loop",
|
||||
Action: "in",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue