mirror of https://github.com/jumpserver/jumpserver
[Update] 修改license的判断方法
parent
b371676813
commit
701582fe38
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue