From 38ea1dd0c65e81640880d78e36295b2c9e1c18ad Mon Sep 17 00:00:00 2001 From: Joe <1264204425@qq.com> Date: Wed, 11 Sep 2024 10:38:16 +0800 Subject: [PATCH] feat: update SystemFeatureModel --- api/services/feature_service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/services/feature_service.py b/api/services/feature_service.py index 72ab9b0e68..6a7eb8c34a 100644 --- a/api/services/feature_service.py +++ b/api/services/feature_service.py @@ -45,6 +45,8 @@ class SystemFeatureModel(BaseModel): enable_email_code_login: bool = dify_config.ENABLE_EMAIL_CODE_LOGIN enable_email_password_login: bool = dify_config.ENABLE_EMAIL_PASSWORD_LOGIN enable_social_oauth_login: bool = dify_config.ENABLE_SOCIAL_OAUTH_LOGIN + is_allow_register: bool = dify_config.ALLOW_REGISTER + is_allow_create_workspace: bool = dify_config.ALLOW_CREATE_WORKSPACE class FeatureService: