perf: 修改 i18n (#7904)

* perf: some perm to xpack

* perf: 修改 i18n

* perf: 修改 i18n

* perf: 修改 i18n

Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: Jiangjie.Bai <32935519+BaiJiangJie@users.noreply.github.com>
This commit is contained in:
fit2bot
2022-03-17 15:23:22 +08:00
committed by GitHub
parent 76796f249d
commit 5c7bfcff1c
4 changed files with 159 additions and 130 deletions

View File

@@ -320,7 +320,7 @@ class PermissionTreeUtil:
if not self._check_model_xpack(model_id):
continue
title = p.app_label_codename
if title in xpack_nodes:
if not settings.XPACK_ENABLED and title in xpack_nodes:
continue
# name 要特殊处理,解决 i18n 问题