mirror of
https://github.com/langgenius/dify.git
synced 2026-05-12 15:58:19 +08:00
feat: system feature return rbac enabled
This commit is contained in:
parent
cd2b623aee
commit
110442b4b2
@ -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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user