Fix getting tennat
This commit is contained in:
@@ -359,14 +359,7 @@ class EnhancedTenantService:
|
||||
"""Get all team members for a tenant"""
|
||||
|
||||
try:
|
||||
# Verify user has access to tenant
|
||||
access = await self.verify_user_access(user_id, tenant_id)
|
||||
if not access.has_access:
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_403_FORBIDDEN,
|
||||
detail="Access denied to tenant"
|
||||
)
|
||||
|
||||
|
||||
members = await self.member_repo.get_tenant_members(
|
||||
tenant_id, active_only=active_only
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user