mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
session_rpcserver: nil check on MacaroonRecipe
This commit is contained in:
parent
cfc0de1a9e
commit
fbe32230b1
1 changed files with 3 additions and 1 deletions
|
|
@ -323,7 +323,9 @@ func (s *sessionRpcServer) resumeSession(sess *session.Session) error {
|
|||
// For custom session types, we use the caveats and permissions that
|
||||
// were persisted on session creation.
|
||||
case session.TypeMacaroonCustom:
|
||||
permissions = sess.MacaroonRecipe.Permissions
|
||||
if sess.MacaroonRecipe != nil {
|
||||
permissions = sess.MacaroonRecipe.Permissions
|
||||
}
|
||||
|
||||
// No other types are currently supported.
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue