feat(multi-tenancy): implement critical fixes for orphaned users and permissions
- Simplified HasTenantAccess permission logic to ensure every authenticated user has an account. - Added fallback to system account for OpenAI settings in AI configuration. - Allowed any authenticated user to check task progress in IntegrationSettingsViewSet. - Created a script to identify and fix orphaned users without accounts. - Updated error response handling in business endpoints for clarity.
This commit is contained in:
@@ -1395,6 +1395,7 @@ export interface Site {
|
||||
|
||||
export interface SiteCreateData {
|
||||
name: string;
|
||||
industry?: number; // Industry ID - required by backend
|
||||
slug?: string;
|
||||
domain?: string;
|
||||
description?: string;
|
||||
@@ -1403,6 +1404,7 @@ export interface SiteCreateData {
|
||||
wp_url?: string;
|
||||
wp_username?: string;
|
||||
wp_app_password?: string;
|
||||
hosting_type?: string;
|
||||
}
|
||||
|
||||
export interface SitesResponse {
|
||||
|
||||
Reference in New Issue
Block a user