mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-13 11:24:17 +00:00
perf: The global organization strategy is not operational.
This commit is contained in:
@@ -52,10 +52,11 @@ export default {
|
||||
updateRoute: 'CloudStrategyUpdate',
|
||||
hasClone: false,
|
||||
canDelete: ({ row }) => {
|
||||
return row.name !== 'default'
|
||||
return this.$hasPerm('xpack.delete_strategy') && row.name !== 'default'
|
||||
},
|
||||
canUpdate: ({ row }) => {
|
||||
return row.name !== 'default'
|
||||
return this.$hasPerm('xpack.change_strategy') && row.name !== 'default' &&
|
||||
!this.$store.getters.currentOrgIsRoot
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user