mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-04 05:59:48 +08:00 
			
		
		
		
	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:
		@ -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();
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user