Merge pull request #4181 from jumpserver/pr@dev@applet

perf: Virtualapp and appprovider tab perm
This commit is contained in:
feng626 2024-07-04 16:46:45 +08:00 committed by GitHub
commit e92173f8e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,14 +41,14 @@ export default {
title: this.$t('VirtualApp'),
name: 'VirtualApp',
hidden: () => {
return !store.getters.publicSettings['VIRTUAL_APP_ENABLED'] || !this.$store.getters.hasValidLicense
return !store.getters.publicSettings['VIRTUAL_APP_ENABLED'] || !this.$store.getters.hasValidLicense || !this.$hasPerm('terminal.view_virtualapp')
}
},
{
title: this.$t('AppProvider'),
name: 'AppProvider',
hidden: () => {
return !store.getters.publicSettings['VIRTUAL_APP_ENABLED'] || !this.$store.getters.hasValidLicense
return !store.getters.publicSettings['VIRTUAL_APP_ENABLED'] || !this.$store.getters.hasValidLicense || !this.$hasPerm('terminal.view_appprovider')
}
}
]