perf: 社区版移除magnus

This commit is contained in:
wangruidong
2024-07-16 10:30:17 +08:00
committed by w940853815
parent 53a388a7e0
commit ea6cd853de
3 changed files with 8 additions and 1 deletions

View File

@@ -242,7 +242,8 @@ class ConnectMethodUtil:
'razor': 'TERMINAL_RAZOR_ENABLED',
'magnus': 'TERMINAL_MAGNUS_ENABLED',
}
disabled_component = [comp for comp, attr in component_setting.items() if not getattr(settings, attr)]
disabled_component = [comp for comp, attr in component_setting.items() if
not (getattr(settings, attr) and settings.XPACK_LICENSE_IS_VALID)]
if not disabled_component:
return methods