Skip to content

Commit 2ec3203

Browse files
author
ljl
committed
iam:fix role.
1 parent 39da8e8 commit 2ec3203

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

support/iam/src/basic/serv/iam_role_serv.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ impl IamRoleServ {
395395

396396
pub async fn add_app_copy_role_agg(app_id: &str, funs: &TardisFunsInst, ctx: &TardisContext)-> TardisResult<()>{
397397
Self::copy_role_agg(app_id, &IamRoleKind::App, funs, ctx).await?;
398+
let tenant_ctx = IamCertServ::use_sys_or_tenant_ctx_unsafe(ctx.clone())?;
398399
let tenant_app_roles = Self::find_detail_items(
399400
&IamRoleFilterReq {
400401
basic: RbumBasicFilterReq {
@@ -409,7 +410,7 @@ impl IamRoleServ {
409410
None,
410411
None,
411412
funs,
412-
ctx,
413+
&tenant_ctx,
413414
)
414415
.await?;
415416
for app_role in tenant_app_roles {

0 commit comments

Comments
 (0)