mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-11-30 01:44:58 +03:00
bug fix
This commit is contained in:
parent
fd0d5a64bc
commit
b7d7edce90
@ -1108,6 +1108,15 @@ pub async fn kernel(
|
||||
sig.clone()
|
||||
)
|
||||
})
|
||||
// if issuer is self, retrieve uncritically
|
||||
} else if cap.issuer.process == on {
|
||||
Some((
|
||||
cap.clone(),
|
||||
keypair
|
||||
.sign(&rmp_serde::to_vec(&cap).unwrap())
|
||||
.as_ref()
|
||||
.to_vec()
|
||||
))
|
||||
// otherwise verify the signature before returning
|
||||
} else {
|
||||
match p.capabilities.get(cap) {
|
||||
|
Loading…
Reference in New Issue
Block a user