From dc8418a67525115f50711dbfd12ed84c1421a855 Mon Sep 17 00:00:00 2001 From: RWDai <27391645+RWDai@users.noreply.github.com> Date: Wed, 3 Jul 2024 10:17:47 +0800 Subject: [PATCH] fix:fix show_sk function (#794) --- backend/supports/iam/src/basic/serv/iam_cert_serv.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/supports/iam/src/basic/serv/iam_cert_serv.rs b/backend/supports/iam/src/basic/serv/iam_cert_serv.rs index 25b46ca81..119e3edf9 100644 --- a/backend/supports/iam/src/basic/serv/iam_cert_serv.rs +++ b/backend/supports/iam/src/basic/serv/iam_cert_serv.rs @@ -768,7 +768,7 @@ impl IamCertServ { .await?; if let Some(ext_cert) = ext_cert { let encoded_sk = if show_sk { - let now_sk = RbumCertServ::show_sk(ext_cert.id.as_str(), &RbumCertFilterReq::default(), funs, ctx).await?; + let now_sk = RbumCertServ::show_sk(ext_cert.id.as_str(), &RbumCertFilterReq::default(), funs, &mock_ctx).await?; encode_cert(&ext_cert.id, now_sk, ext_cert.sk_invisible)? } else { "".to_string()