mirror of
https://github.com/langgenius/dify.git
synced 2026-03-01 12:55:13 +00:00
- Add ALLOWED_ACCESS_MODES constant to centralize valid access modes - Include 'sso_verified' in validation to fix app duplication errors - Update error message to dynamically list all allowed modes - Refactor for maintainability: single source of truth for access modes This fixes the issue where apps with access_mode='sso_verified' could not be duplicated because the validation in update_app_access_mode() was missing this mode, even though it was documented in WebAppSettings model.