fix: Restrict account creation for root organizations

This commit is contained in:
w940853815
2025-03-14 10:51:02 +08:00
committed by w940853815
parent e116dcc230
commit 77ba87c66c

View File

@@ -97,7 +97,6 @@ export default {
}, },
actions: { actions: {
formatterArgs: { formatterArgs: {
canUpdate: () => true,
updateRoute: 'AccountCheckCreateUpdate', updateRoute: 'AccountCheckCreateUpdate',
extraActions: [ extraActions: [
{ {
@@ -130,7 +129,7 @@ export default {
hasExport: false, hasExport: false,
hasImport: false, hasImport: false,
createRoute: 'AccountCheckCreateUpdate', createRoute: 'AccountCheckCreateUpdate',
canCreate: vm.$hasPerm('accounts.add_checkaccountautomation') canCreate: vm.$hasPerm('accounts.add_checkaccountautomation') && !this.$store.getters.currentOrgIsRoot
} }
} }
} }