mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-08 10:07:41 +00:00
Merge pull request #4181 from jumpserver/pr@dev@applet
perf: Virtualapp and appprovider tab perm
This commit is contained in:
commit
e92173f8e8
@ -41,14 +41,14 @@ export default {
|
|||||||
title: this.$t('VirtualApp'),
|
title: this.$t('VirtualApp'),
|
||||||
name: 'VirtualApp',
|
name: 'VirtualApp',
|
||||||
hidden: () => {
|
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'),
|
title: this.$t('AppProvider'),
|
||||||
name: 'AppProvider',
|
name: 'AppProvider',
|
||||||
hidden: () => {
|
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')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user