refactor: Remove testme comment

This commit is contained in:
Igor Ilic 2025-11-07 16:37:37 +01:00
parent 8a72de8f86
commit d6e2bd132b

View file

@ -48,7 +48,7 @@ async def add_user_to_role(user_id: UUID, role_id: UUID, owner_id: UUID):
raise UserNotFoundError
elif not role:
raise RoleNotFoundError
elif role.tenant_id not in [tenant.id for tenant in user_tenants]: # TESTME
elif role.tenant_id not in [tenant.id for tenant in user_tenants]:
raise TenantNotFoundError(
message="User tenant does not match role tenant. User cannot be added to role."
)