mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-16 16:01:35 +00:00
[Update] 修改license的判断方法
This commit is contained in:
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
Block a user