提交 701582fe 编写于 作者: baltery's avatar baltery

[Update] 修改license的判断方法

上级 b3716768
......@@ -442,7 +442,7 @@ class DynamicConfig:
return False
try:
from xpack.plugins.license.models import License
return bool(License.is_valid)
return License.has_valid_license()
except:
return False
......
......@@ -16,4 +16,3 @@ class UserGroupViewSet(OrgBulkModelViewSet):
search_fields = filter_fields
permission_classes = (IsOrgAdmin,)
serializer_class = UserGroupSerializer
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册