mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-04 17:01:09 +00:00
fix(orgs): 修复访问 current org api 错误
perf(users): 优化用户删除和移除行为 perf: 优化组织权限判断
This commit is contained in:
@@ -98,12 +98,9 @@ class PublicSettingApi(generics.RetrieveAPIView):
|
||||
def get_xpack_license_is_valid():
|
||||
if not settings.XPACK_ENABLED:
|
||||
return False
|
||||
try:
|
||||
from xpack.plugins.license.models import License
|
||||
return License.has_valid_license()
|
||||
except Exception as e:
|
||||
logger.error(e)
|
||||
return False
|
||||
|
||||
from xpack.plugins.license.models import License
|
||||
return License.has_valid_license()
|
||||
|
||||
@staticmethod
|
||||
def get_login_title():
|
||||
|
Reference in New Issue
Block a user