mirror of
https://github.com/langgenius/dify.git
synced 2026-02-25 05:04:25 -05:00
When copying an app, the copied app was not getting a web_app_settings record created. This caused the enterprise service to query for settings that don't exist, falling back to default behavior. This fix ensures copied apps inherit the same access mode as the original: - If original has explicit settings (public/private/private_all/sso_verified), the copy gets the same setting - If original has no settings (old apps), copy defaults to 'public' to match the original's effective permission via fallback This prevents permission mismatches between original and copied apps and ensures the enterprise service has explicit settings to query. Related: langgenius/dify-enterprise#423