mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-05 01:11:57 +00:00
perf: 优化 xpack license 检查 (#11885)
Co-authored-by: ibuler <ibuler@qq.com>
This commit is contained in:
@@ -61,7 +61,7 @@ class DownloadUploadMixin:
|
||||
update = request.query_params.get('update')
|
||||
|
||||
is_enterprise = manifest.get('edition') == Applet.Edition.enterprise
|
||||
if is_enterprise and not settings.XPACK_ENABLED:
|
||||
if is_enterprise and not settings.XPACK_LICENSE_IS_VALID:
|
||||
raise ValidationError({'error': _('This is enterprise edition applet')})
|
||||
|
||||
instance = Applet.objects.filter(name=name).first()
|
||||
|
Reference in New Issue
Block a user