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