From 110442b4b29eaa7ef3f93d1cdaec58aba0142e7f Mon Sep 17 00:00:00 2001 From: fatelei Date: Tue, 12 May 2026 11:18:44 +0800 Subject: [PATCH] feat: system feature return rbac enabled --- 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 9477c28bf3..16d2597963 100644 --- a/api/services/feature_service.py +++ b/api/services/feature_service.py @@ -180,6 +180,7 @@ class SystemFeatureModel(BaseModel): enable_creators_platform: bool = False enable_trial_app: bool = False enable_explore_banner: bool = False + rbac_enabled: bool = False class FeatureService: @@ -229,6 +230,7 @@ class FeatureService: def get_system_features(cls, is_authenticated: bool = False) -> SystemFeatureModel: system_features = SystemFeatureModel() system_features.app_dsl_version = CURRENT_APP_DSL_VERSION + system_features.rbac_enabled = dify_config.RBAC_ENABLED cls._fulfill_system_params_from_env(system_features)