mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
looprpc: align instant out permissions with loop out
Apply the loop:out permission to Instant Out and reservation RPCs so their authorization requirements match the rest of the Loop Out API.
This commit is contained in:
parent
aa79fa5262
commit
7cab89d45b
1 changed files with 12 additions and 0 deletions
|
|
@ -177,18 +177,30 @@ var RequiredPermissions = map[string][]bakery.Op{
|
|||
"/looprpc.SwapClient/ListReservations": {{
|
||||
Entity: "swap",
|
||||
Action: "read",
|
||||
}, {
|
||||
Entity: "loop",
|
||||
Action: "out",
|
||||
}},
|
||||
"/looprpc.SwapClient/InstantOut": {{
|
||||
Entity: "swap",
|
||||
Action: "execute",
|
||||
}, {
|
||||
Entity: "loop",
|
||||
Action: "out",
|
||||
}},
|
||||
"/looprpc.SwapClient/InstantOutQuote": {{
|
||||
Entity: "swap",
|
||||
Action: "read",
|
||||
}, {
|
||||
Entity: "loop",
|
||||
Action: "out",
|
||||
}},
|
||||
"/looprpc.SwapClient/ListInstantOuts": {{
|
||||
Entity: "swap",
|
||||
Action: "read",
|
||||
}, {
|
||||
Entity: "loop",
|
||||
Action: "out",
|
||||
}},
|
||||
"/looprpc.SwapClient/StopDaemon": {{
|
||||
Entity: "loop",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue