[PR #32324] fix: include sso_verified in access_mode validation #33673

Open
opened 2026-02-21 20:53:42 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/32324

State: open
Merged: No


Summary

Fixes app duplication error when the original app has access_mode='sso_verified'.

Problem

When duplicating an app, the code inherits the access_mode from the original app. However, the validation in update_app_access_mode() only allowed ["public", "private", "private_all"], missing the "sso_verified" value that was documented in the WebAppSettings model.

This caused duplication to fail with: access_mode must be either 'public', 'private', or 'private_all'

Changes

  • Added "sso_verified" to the allowed values in update_app_access_mode() validation
  • Updated error message to include "sso_verified"

Files Changed

  • api/services/enterprise/enterprise_service.py

Testing

  • Verified LSP diagnostics are clean
  • No new type errors introduced
**Original Pull Request:** https://github.com/langgenius/dify/pull/32324 **State:** open **Merged:** No --- ## Summary Fixes app duplication error when the original app has `access_mode='sso_verified'`. ## Problem When duplicating an app, the code inherits the `access_mode` from the original app. However, the validation in `update_app_access_mode()` only allowed `["public", "private", "private_all"]`, missing the `"sso_verified"` value that was documented in the `WebAppSettings` model. This caused duplication to fail with: `access_mode must be either 'public', 'private', or 'private_all'` ## Changes - Added `"sso_verified"` to the allowed values in `update_app_access_mode()` validation - Updated error message to include `"sso_verified"` ## Files Changed - `api/services/enterprise/enterprise_service.py` ## Testing - Verified LSP diagnostics are clean - No new type errors introduced
yindo added the pull-request label 2026-02-21 20:53:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#33673