feat(users): add support for tenant level users (#6708)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Apoorv Dixit
2024-12-06 17:31:55 +05:30
committed by GitHub
parent b5d3d49cea
commit 357e8a007a
22 changed files with 701 additions and 128 deletions

View File

@ -1931,6 +1931,9 @@ pub mod routes {
EntityType::Organization => Some(AuthInfo::OrgLevel {
org_id: user_role.org_id.clone()?,
}),
EntityType::Tenant => Some(AuthInfo::OrgLevel {
org_id: auth.org_id.clone(),
}),
})
})
.collect();
@ -2054,6 +2057,9 @@ pub mod routes {
EntityType::Organization => Some(AuthInfo::OrgLevel {
org_id: user_role.org_id.clone()?,
}),
EntityType::Tenant => Some(AuthInfo::OrgLevel {
org_id: auth.org_id.clone(),
}),
})
})
.collect();