mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-24 00:24:19 +01:00
commando: don't let readonly default read the datastore.
That... would be dumb, since it holds the master secret! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -231,6 +231,8 @@ def add_reader_restrictions(rune: runes.Rune) -> str:
|
||||
'|method=summary'))
|
||||
# But not getsharesecret!
|
||||
rune.add_restriction(runes.Restriction.from_str('method/getsharedsecret'))
|
||||
# And not listdatastore!
|
||||
rune.add_restriction(runes.Restriction.from_str('method/listdatastore'))
|
||||
return rune.to_base64()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user