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:
Boris Nagaev 2026-05-07 02:24:17 -05:00
parent 6ea1c79834
commit e340797225
No known key found for this signature in database

View file

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