feat: Implement cross-tenant access functionality
- Added configuration for enabling cross-tenant access in the application. - Introduced new API endpoints for listing and searching tenants, accessible only to users with the appropriate permissions. - Updated user and tenant models to include the `can_access_all_tenants` field. - Enhanced the authentication middleware to handle cross-tenant requests and validate user permissions. - Created a new TenantSelector component for selecting tenants in the frontend, improving user experience. - Updated internationalization files to support new tenant-related strings and messages.
This commit is contained in:
@@ -102,6 +102,8 @@ type TenantConfig struct {
|
||||
DefaultSessionName string `yaml:"default_session_name" json:"default_session_name"`
|
||||
DefaultSessionTitle string `yaml:"default_session_title" json:"default_session_title"`
|
||||
DefaultSessionDescription string `yaml:"default_session_description" json:"default_session_description"`
|
||||
// EnableCrossTenantAccess enables cross-tenant access for users with permission
|
||||
EnableCrossTenantAccess bool `yaml:"enable_cross_tenant_access" json:"enable_cross_tenant_access"`
|
||||
}
|
||||
|
||||
// ModelConfig 模型配置
|
||||
|
||||
Reference in New Issue
Block a user