fix(orgs): 修复访问 current org api 错误

perf(users): 优化用户删除和移除行为

perf: 优化组织权限判断
This commit is contained in:
ibuler
2021-03-15 14:53:19 +08:00
committed by Jiangjie.Bai
parent 41f375a4f7
commit 7dfd0ee8fe
6 changed files with 39 additions and 19 deletions

View File

@@ -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():