mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 13:30:39 +08:00
feat(users): add tenant id reads in user roles (#6661)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -1864,6 +1864,7 @@ pub mod routes {
|
||||
.global_store
|
||||
.list_user_roles_by_user_id(ListUserRolesByUserIdPayload {
|
||||
user_id: &auth.user_id,
|
||||
tenant_id: auth.tenant_id.as_ref().unwrap_or(&state.tenant.tenant_id),
|
||||
org_id: Some(&auth.org_id),
|
||||
merchant_id: None,
|
||||
profile_id: None,
|
||||
@ -1987,6 +1988,7 @@ pub mod routes {
|
||||
.global_store
|
||||
.list_user_roles_by_user_id(ListUserRolesByUserIdPayload {
|
||||
user_id: &auth.user_id,
|
||||
tenant_id: auth.tenant_id.as_ref().unwrap_or(&state.tenant.tenant_id),
|
||||
org_id: Some(&auth.org_id),
|
||||
merchant_id: None,
|
||||
profile_id: None,
|
||||
|
||||
Reference in New Issue
Block a user