From 77ba87c66cbee18b9d30d2a8946c3e641af9b320 Mon Sep 17 00:00:00 2001 From: w940853815 <940853815@qq.com> Date: Fri, 14 Mar 2025 10:51:02 +0800 Subject: [PATCH] fix: Restrict account creation for root organizations --- src/views/accounts/RiskDetect/AccountCheckTaskList.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/views/accounts/RiskDetect/AccountCheckTaskList.vue b/src/views/accounts/RiskDetect/AccountCheckTaskList.vue index 3eb6b4db2..1c1f83af6 100644 --- a/src/views/accounts/RiskDetect/AccountCheckTaskList.vue +++ b/src/views/accounts/RiskDetect/AccountCheckTaskList.vue @@ -97,7 +97,6 @@ export default { }, actions: { formatterArgs: { - canUpdate: () => true, updateRoute: 'AccountCheckCreateUpdate', extraActions: [ { @@ -130,7 +129,7 @@ export default { hasExport: false, hasImport: false, createRoute: 'AccountCheckCreateUpdate', - canCreate: vm.$hasPerm('accounts.add_checkaccountautomation') + canCreate: vm.$hasPerm('accounts.add_checkaccountautomation') && !this.$store.getters.currentOrgIsRoot } } }