From bbc3f53c0af1a8b25128552330fbbb2ea14bf830 Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Wed, 18 Sep 2024 11:09:53 +0800 Subject: [PATCH] perf: User details community version removes user acl --- src/views/users/User/UserDetail/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/users/User/UserDetail/index.vue b/src/views/users/User/UserDetail/index.vue index 9a27da422..c4e3ee285 100644 --- a/src/views/users/User/UserDetail/index.vue +++ b/src/views/users/User/UserDetail/index.vue @@ -19,6 +19,7 @@ import AssetPermissionAsset from '@/views/perms/AssetPermission/AssetPermissionD import AssetPermissionDetail from '@/views/perms/AssetPermission/AssetPermissionDetail/index.vue' import AssetPermissionAccount from '@/views/perms/AssetPermission/AssetPermissionDetail/AssetPermissionAccount.vue' import UserAssetPermissionRules from './UserAssetPermissionRules' +import store from '@/store' export default { components: { @@ -63,7 +64,7 @@ export default { { title: this.$t('UserAclLists'), name: 'UserLoginAcl', - hidden: () => !vm.$hasPerm('acls.view_loginacl') + hidden: () => !vm.$hasPerm('acls.view_loginacl') || !store.getters.publicSettings.XPACK_LICENSE_IS_VALID }, { title: this.$t('UserSession'),