mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-23 20:17:54 +00:00
fix: Restrict account creation for root organizations
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user